-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to programatically expand/collapse tree view #88219
Comments
(Experimental duplicate detection) |
In Docker extension we have several views and some of them are used by only the advanced users. So we would like to collapse those views to make room for other commonly used views. We need this feature too. |
Hai, Any one got a solution for this?? |
Is there no way to programmatically focus the view header? By that I mean the line with the header title and typically a refresh button, etc. |
You can focus the tree, not the view title with the command |
If you could focus the view title, then |
More interest in this functionality from SO: |
Request
An API on TreeView which allows extensions to expand or collapse their contributed views within the view container. That is, expand/collapse the view itself, not the items in the view.
Example Use Case
If I have a view container with multiple contributed views, not all views may be relevant all the time. It would be nice to be able to close the irrelevant views, to give more screen real estate to the relevant ones.
For example, maybe one view shows the definition of the currently selected word in the editor: if nothing in the editor is selected, then ideally this view could just be collapsed since it is providing no value to the user. When something is selected, it should be possible for the extension to re-expand the view.
The text was updated successfully, but these errors were encountered: