Skip to content

Commit

Permalink
#26948 Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 29, 2017
1 parent 778c030 commit bc2546f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/vs/platform/extensions/common/extensionsRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const schema: IJSONSchema = {
type: 'array',
items: {
type: 'string',
defaultSnippets: [{ label: 'onLanguage', body: 'onLanguage:${1:languageId}' }, { label: 'onCommand', body: 'onCommand:${2:commandId}' }, { label: 'onDebug', body: 'onDebug:${3:type}' }, { label: 'workspaceContains', body: 'workspaceContains:${4:fileName}' }],
defaultSnippets: [{ label: 'onLanguage', body: 'onLanguage:${1:languageId}' }, { label: 'onCommand', body: 'onCommand:${2:commandId}' }, { label: 'onDebug', body: 'onDebug:${3:type}' }, { label: 'workspaceContains', body: 'workspaceContains:${4:fileName}' }, { label: 'onView', body: 'onView:${5:viewId}' }],
}
},
badges: {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/views/browser/treeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class Menus implements IDisposable {
}

getResourceContextActions(element: ITreeItem): IAction[] {
return this.getActions(MenuId.ViewItemContext, { key: 'item', value: element.contextValue }).secondary;
return this.getActions(MenuId.ViewItemContext, { key: 'viewItem', value: element.contextValue }).secondary;
}

private getActions(menuId: MenuId, context: { key: string, value: string }): { primary: IAction[]; secondary: IAction[]; } {
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/parts/views/browser/viewsExtensionPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace schema {
type: 'object',
properties: {
id: {
description: localize('vscode.extension.contributes.view.id', 'Identifier of the view. Use the same identifier to register a data provider through API.'),
description: localize('vscode.extension.contributes.view.id', 'Identifier of the view. 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'
},
name: {
Expand All @@ -66,7 +66,7 @@ namespace schema {
type: 'object',
properties: {
'explorer': {
description: localize('views.explorer', "Explorer"),
description: localize('views.explorer', "Explorer View"),
type: 'array',
items: viewDescriptor
}
Expand Down

0 comments on commit bc2546f

Please sign in to comment.