mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 09:35:41 -05:00
add readonly method to editors (#8630)
This commit is contained in:
@@ -247,6 +247,10 @@ export abstract class NotebookInput extends EditorInput {
|
||||
return this._title;
|
||||
}
|
||||
|
||||
public isReadonly(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public async getProviderInfo(): Promise<IProviderInfo> {
|
||||
await this._providersLoaded;
|
||||
return {
|
||||
|
||||
@@ -177,6 +177,10 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
|
||||
public supportsSplitEditor(): boolean { return false; }
|
||||
public revert(): Promise<boolean> { return this._text.revert(); }
|
||||
|
||||
public isReadonly(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public matches(otherInput: any): boolean {
|
||||
// we want to be able to match against our underlying input as well, bascially we are our underlying input
|
||||
if (otherInput instanceof QueryEditorInput) {
|
||||
|
||||
Reference in New Issue
Block a user