Activate command on TreeViewItem click, VSCode Extension
You have to set the command
property on the TreeItem
instance.
command?: Command
The command that should be executed when the tree item is selected.
https://code.visualstudio.com/docs/extensionAPI/vscode-api#TreeItem