diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index c49833b1d55..a5504996d22 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -1361,7 +1361,7 @@ declare module 'vscode' { export interface TreeExplorerNodeContent { label: string; shouldInitiallyExpand: boolean; - onClickCommand?: string; + clickCommand?: string; } /** diff --git a/src/vs/workbench/api/node/extHostTreeExplorers.ts b/src/vs/workbench/api/node/extHostTreeExplorers.ts index edc514323ce..bd2a6f92e87 100644 --- a/src/vs/workbench/api/node/extHostTreeExplorers.ts +++ b/src/vs/workbench/api/node/extHostTreeExplorers.ts @@ -83,9 +83,9 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape { throw new Error(`no TreeContentProvider registered with id '${providerId}'`); } - if (mainThreadNode.onClickCommand) { + if (mainThreadNode.clickCommand) { const externalNode = this._externalNodeMaps[providerId][mainThreadNode.id]; - return TPromise.wrap(this.commands.executeCommand(mainThreadNode.onClickCommand, externalNode).then(() => { + return TPromise.wrap(this.commands.executeCommand(mainThreadNode.clickCommand, externalNode).then(() => { return null; })); } diff --git a/src/vs/workbench/parts/explorers/browser/views/treeExplorerViewer.ts b/src/vs/workbench/parts/explorers/browser/views/treeExplorerViewer.ts index 4349b94da9a..31aa66fec8a 100644 --- a/src/vs/workbench/parts/explorers/browser/views/treeExplorerViewer.ts +++ b/src/vs/workbench/parts/explorers/browser/views/treeExplorerViewer.ts @@ -88,7 +88,7 @@ export class TreeController extends DefaultController { onLeftClick(tree: ITree, node: InternalTreeExplorerNode, event: IMouseEvent, origin: string = 'mouse'): boolean { super.onLeftClick(tree, node, event, origin); - if (node.onClickCommand) { + if (node.clickCommand) { this.treeExplorerViewletService.resolveCommand('pineTree', node); } diff --git a/src/vs/workbench/parts/explorers/common/treeExplorerViewModel.ts b/src/vs/workbench/parts/explorers/common/treeExplorerViewModel.ts index 3ee31534bbb..b41757b01a5 100644 --- a/src/vs/workbench/parts/explorers/common/treeExplorerViewModel.ts +++ b/src/vs/workbench/parts/explorers/common/treeExplorerViewModel.ts @@ -8,14 +8,14 @@ export class InternalTreeExplorerNode implements TreeExplorerNodeContent { label: string; shouldInitiallyExpand: boolean; - onClickCommand: string; + clickCommand: string; constructor(node: TreeExplorerNodeContent) { this.id = InternalTreeExplorerNode.idCounter++; this.label = node.label; this.shouldInitiallyExpand = node.shouldInitiallyExpand; - this.onClickCommand = node.onClickCommand; + this.clickCommand = node.clickCommand; } }