add readonly method to editors (#8630)

This commit is contained in:
Anthony Dresser
2019-12-10 18:16:16 -08:00
committed by GitHub
parent 775a25d944
commit 659f392196
2 changed files with 8 additions and 0 deletions

View File

@@ -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) {