-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Description
I'm trying to get a handler for the default File Explorer TreeView. The use case is to reveal (and focus) a given item programmatically, after an action is triggered in a separate Custom TreeView contributed by my own extension.
I found #30288, about how to reveal
an item in the Custom TreeView. However, I'd like to reveal an item in the default File Explorer instead. Hence, I tried window.createTreeView:
const myhandle = vscode.window.createTreeView(viewId: 'explorer');
But it is invalid, because it requires TreeViewOptions, which I don't want to provide/override.
I'd expect the API to provide window.getTreeView
, so it is possible to interact with the default File Explorer view. AFAIK, currently it is only possible to add features in the expected contribution points, e.g. the context menu.