From 5707b58fda1562525e452f34231b62d1cddbf53c Mon Sep 17 00:00:00 2001 From: Kevin Cunnane Date: Tue, 15 May 2018 16:37:52 -0700 Subject: [PATCH] Make Webview support (#1429) This is needed to enable testing of webview-based experiences. This was made an official API in the latest VSCode release, so on next merge this will be standard anyhow. --- src/vs/workbench/api/node/extHost.api.impl.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 298d2b8b9b..904eecb615 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -407,9 +407,10 @@ export function createApiFactory( registerDecorationProvider: proposedApiFunction(extension, (provider: vscode.DecorationProvider) => { return extHostDecorations.registerDecorationProvider(provider, extension.id); }), - createWebview: proposedApiFunction(extension, (uri: vscode.Uri, title: string, column: vscode.ViewColumn, options: vscode.WebviewOptions) => { + // {{SQL CARBON EDIT}} + createWebview(uri: vscode.Uri, title: string, column: vscode.ViewColumn, options: vscode.WebviewOptions): vscode.Webview { return extHostWebviews.createWebview(uri, title, column, options); - }), + }, onDidChangeActiveEditor: proposedApiFunction(extension, (listener, thisArg?, disposables?) => { return extHostDocumentsAndEditors.onDidChangeActiveEditor(listener, thisArg, disposables); })