How to listen to events in vscode's TreeDataProvider?
问题 I'm playing with building a vscode extension, using the TreeDataProvider API. I have a list of things showing, each TreeItem a composed label string, all works fine. What I am missing is a way of reacting to click events on any of the items. VSCode selects the item when you click on it, but I'd like to listen to that event, get the item in question etc... It's not obvious to me from the docs. In general, customizing the TreeItem is severely lacking, e.g. being able to colorize the label or