-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
search-in-workspace: update 'collapse' toolbar item to also 'expand' #7714
Comments
I noticed that Theia does not have the right icon for the |
@elaihau for the newer icons (like in vscode) we need can use export const COLLAPSE_ALL: Command = {
id: 'search-in-workspace.collapse-all',
category: SEARCH_CATEGORY,
label: 'Collapse All',
iconClass: 'codicon codicon-collapse-all'
}; The issue is that we do not support toggling icons (collapse / expand) as of yet: #6082 |
@vince-fugnitto Thank you for the explaination. I played with your code snippet in Theia, and found the following:
while Since codicons are used in quite a few places in Theia, I am thinking there should be something that determines which codicons can be displayed. Could you please point me to that place ? |
@elaihau the |
Thanks.
I made a poc of the icon toggling by taking advantage of the visibility: it doesn't add support to the toggling icons but ... looks like if we have the right icon we could make it work |
It should work to have the following as the two icons during the toggle: codicon codicon-collapse-all
codicon codicon-expand-all I noticed the list of icons when viewing the following file (ex:
|
sorry I will do a deep dive. if I happen to find anything I will let you know :) Thanks ! |
Correct, I don't see it in the file I referenced either. |
made it :) |
OK I will leave the way that the icon is toggled here so someone in future could use it if s/he needs
|
Description
The 'collapse all' toolbar item for the search-in-workspace widget should be updated to also support expanding nodes (when the tree has been collapsed) similarly to VS Code. The toolbar item should take care of toggling the expansion of the tree between collapsed/expanded.
In the following screenshots notice the last toolbar item (+/- based on the tree state):
Collapsed:
Expanded:
Steps to Reproduce
The text was updated successfully, but these errors were encountered: