Allow to get a handler for the default Explorer TreeView #76891
Labels
api
feature-request
Request for new features or functionality
file-explorer
Explorer widget issues
*out-of-scope
Posted issue is not in scope of VS Code
Milestone
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.The text was updated successfully, but these errors were encountered: