Add show method to webview view

Fixes #106085
This commit is contained in:
Matt Bierner
2020-09-08 17:19:03 -07:00
parent 93a0c99f18
commit f79540dc65
6 changed files with 29 additions and 1 deletions

View File

@@ -99,6 +99,11 @@ class ExtHostWebviewView extends Disposable implements vscode.WebviewView {
this.#onDidChangeVisibility.fire();
}
public show(preserveFocus?: boolean): void {
this.assertNotDisposed();
this.#proxy.$show(this.#handle, !!preserveFocus);
}
private assertNotDisposed() {
if (this.#isDisposed) {
throw new Error('Webview is disposed');