Skip to content

Commit

Permalink
Document view.type contribution
Browse files Browse the repository at this point in the history
Fixes #105821
  • Loading branch information
mjbvz committed Sep 10, 2020
1 parent 7daf6e1 commit f731c6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/vs/workbench/api/browser/viewsExtensionPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ enum InitialVisibility {
const viewDescriptor: IJSONSchema = {
type: 'object',
properties: {
type: {
markdownDescription: localize('vscode.extension.contributes.view.type', "Type of the the view. This can either be `tree` for a tree view based view or `webview` for a webview based view. The default is `tree`."),
type: 'string',
enum: [
'tree',
'webview',
],
markdownEnumDescriptions: [
localize('vscode.extension.contributes.view.tree', "The view is backed by a `TreeView` created by `createTreeView`."),
localize('vscode.extension.contributes.view.webview', "The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."),
]
},
id: {
description: localize('vscode.extension.contributes.view.id', 'Identifier of the view. This should be unique across all views. It is recommended to include your extension id as part of the view id. Use this to register a data provider through `vscode.window.registerTreeDataProviderForView` API. Also to trigger activating your extension by registering `onView:${id}` event to `activationEvents`.'),
type: 'string'
Expand Down

0 comments on commit f731c6f

Please sign in to comment.