Skip to content

Allow to get a handler for the default Explorer TreeView #76891

@eine

Description

@eine

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.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codeapifeature-requestRequest for new features or functionalityfile-explorerExplorer widget issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions