Add webview.show method to show a webview in a given group

Fixes #44430
This commit is contained in:
Matt Bierner
2018-02-26 12:56:04 -08:00
parent 205143c088
commit 26cbbea694
3 changed files with 46 additions and 20 deletions

View File

@@ -97,10 +97,14 @@ export class ExtHostWebview implements vscode.Webview {
this._viewColumn = value;
}
public postMessage(message: any): Thenable<any> {
public postMessage(message: any): Thenable<boolean> {
return this._proxy.$sendMessage(this._handle, message);
}
public show(viewColumn: vscode.ViewColumn): void {
this._proxy.$show(this._handle, typeConverters.fromViewColumn(viewColumn));
}
private assertNotDisposed() {
if (this._isDisposed) {
throw new Error('Webview is disposed');