mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Implement select command for tree views
This commit is contained in:
@@ -73,9 +73,11 @@ class TreeExplorerNodeProvider implements IExplorerViewDataProvider<ITreeNode> {
|
||||
return node.contextKey;
|
||||
}
|
||||
|
||||
executeCommand(node: ITreeNode): TPromise<any> {
|
||||
return this._proxy.$getInternalCommand(this.id, node).then(command => {
|
||||
return this.commandService.executeCommand(command.id, ...command.arguments);
|
||||
select(node: ITreeNode): void {
|
||||
this._proxy.$getInternalCommand(this.id, node).then(command => {
|
||||
if (command) {
|
||||
this.commandService.executeCommand(command.id, ...command.arguments);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user