I want to get file data on file click on workspace.
For example I have todo-list project folder and a file named app.js. I want to log app.jss' vscode metadata in debug console on file click in tree-view workspace.
todo-list > app.js
Upon searching in docs, I saw onDidChangeSelection event. I want to use the event and see if I can log any data on file selection in tree-view.
onDidChangeSelection: Event<TreeViewSelectionChangeEvent<T>>
Can anyone please help me on how to use onDidChangeSelection event? I already tried scanning vscode.window and vscode.TreeItem and still can't find the event.
And if anyone had already tried logging file data on file click in tree view, what vscode event/api did you use?