add create webview event and fix fire event in model view (#2405)

This commit is contained in:
Abbie Petchtes
2018-09-05 14:07:52 -07:00
committed by GitHub
parent b7f4f6af3a
commit 534bbe9b9a
17 changed files with 39 additions and 20 deletions

View File

@@ -850,6 +850,7 @@ class EditorWrapper extends ComponentWrapper implements sqlops.EditorComponent {
super(proxy, handle, ModelComponentTypes.Editor, id);
this.properties = {};
this._emitterMap.set(ComponentEventType.onDidChange, new Emitter<any>());
this._emitterMap.set(ComponentEventType.onComponentCreated, new Emitter<any>());
}
public get content(): string {
@@ -874,6 +875,11 @@ class EditorWrapper extends ComponentWrapper implements sqlops.EditorComponent {
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
return emitter && emitter.event;
}
public get onEditorCreated(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onComponentCreated);
return emitter && emitter.event;
}
}
class RadioButtonWrapper extends ComponentWrapper implements sqlops.RadioButtonComponent {