Add title to webviewCreate

Part of #44579
This commit is contained in:
Matt Bierner
2018-02-27 15:46:50 -08:00
parent 724217dff1
commit a989220093
6 changed files with 14 additions and 13 deletions

View File

@@ -127,18 +127,15 @@ export class ExtHostWebviews implements ExtHostWebviewsShape {
createWebview(
uri: vscode.Uri,
title: string,
viewColumn: vscode.ViewColumn,
options: vscode.WebviewOptions
): vscode.Webview {
const handle = ExtHostWebviews.handlePool++;
if (!this._webviews.has(handle)) {
this._proxy.$createWebview(handle, uri, options);
this._proxy.$createWebview(handle, uri, title, typeConverters.fromViewColumn(viewColumn), options);
const webview = new ExtHostWebview(handle, this._proxy, uri, viewColumn, options);
this._webviews.set(handle, webview);
}
this._proxy.$show(handle, typeConverters.fromViewColumn(viewColumn));
const webview = new ExtHostWebview(handle, this._proxy, uri, viewColumn, options);
this._webviews.set(handle, webview);
return this._webviews.get(handle);
}