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

@@ -38,6 +38,11 @@ export class MainThreadWebviewsViews extends Disposable implements extHostProtoc
webviewView.description = value;
}
public $show(handle: extHostProtocol.WebviewHandle, preserveFocus: boolean): void {
const webviewView = this.getWebviewView(handle);
webviewView.show(preserveFocus);
}
public $registerWebviewViewProvider(viewType: string, options?: { retainContextWhenHidden?: boolean }): void {
if (this._webviewViewProviders.has(viewType)) {
throw new Error(`View provider for ${viewType} already registered`);