提交 1dd6b285 编写于 作者: M Matt Bierner

Restrict webview views to make sure proposed api is enabled

Fixes #105824
上级 73ce0a4c
......@@ -465,6 +465,11 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
return null;
}
if (type === ViewType.Webview && !extension.description.enableProposedApi) {
collector.error(localize('webviewViewsRequireProposed', "Webview views are proposed api and are only supported when running out of dev or with the following command line switch: --enable-proposed-api"));
return null;
}
const viewDescriptor = <ICustomTreeViewDescriptor>{
type: type,
ctorDescriptor: type === ViewType.Tree ? new SyncDescriptor(TreeViewPane) : new SyncDescriptor(WebviewViewPane),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册