mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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;
|
return this._title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public isReadonly(): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public async getProviderInfo(): Promise<IProviderInfo> {
|
public async getProviderInfo(): Promise<IProviderInfo> {
|
||||||
await this._providersLoaded;
|
await this._providersLoaded;
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -177,6 +177,10 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
|
|||||||
public supportsSplitEditor(): boolean { return false; }
|
public supportsSplitEditor(): boolean { return false; }
|
||||||
public revert(): Promise<boolean> { return this._text.revert(); }
|
public revert(): Promise<boolean> { return this._text.revert(); }
|
||||||
|
|
||||||
|
public isReadonly(): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public matches(otherInput: any): boolean {
|
public matches(otherInput: any): boolean {
|
||||||
// we want to be able to match against our underlying input as well, bascially we are our underlying input
|
// we want to be able to match against our underlying input as well, bascially we are our underlying input
|
||||||
if (otherInput instanceof QueryEditorInput) {
|
if (otherInput instanceof QueryEditorInput) {
|
||||||
|
|||||||
Reference in New Issue
Block a user