Allow for auto-resizable editor component (#2818)

This commit is contained in:
Chris LaFreniere
2018-10-11 16:18:58 -07:00
committed by GitHub
parent 1d8132bcaa
commit 5c77e752f6
4 changed files with 47 additions and 1 deletions

View File

@@ -905,6 +905,14 @@ class EditorWrapper extends ComponentWrapper implements sqlops.EditorComponent {
return this.properties['editorUri'];
}
public get isAutoResizable(): boolean {
return this.properties['isAutoResizable'];
}
public set isAutoResizable(v: boolean) {
this.setProperty('isAutoResizable', v);
}
public get onContentChanged(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
return emitter && emitter.event;