add 'search.collapseAllResults' setting#56438
Conversation
256d16f to
85ca2a1
Compare
|
@roblourens Hi there. Sorry I made a mistake about file match count. I have updated the code. |
|
Instead of a boolean, could you make it a string enum setting? Can have "alwaysCollapse" and "auto" (the default). That leaves us open to adding more "modes" in the future, like "alwaysExpand". But, don't implement "alwaysExpand" right now. Perf will be an issue with that option. |
There was a problem hiding this comment.
This should not depend on the DOM.
There was a problem hiding this comment.
Yeah, it will expand automatically if just 1 file matched. I'll just remove it.
Thanks.
https://github.com/Microsoft/vscode/blob/d2148923f578ed65cec6c8a10f396933b3d1d054/src/vs/workbench/parts/search/browser/searchView.ts#L1166-L1178
85ca2a1 to
e64436b
Compare
|
Your idea is great. There are a lot of string enum settings. It makes the setting more extensible. Thanks for your review. |
e64436b to
095758e
Compare
|
Thanks for the PR! |
|
In #48641 it was discussed to have an option to expand all the results by default. Would you please include this option? For example call the setting |
|
like @roblourens said above, It will cause a perf issue if all results are always expended. |
|
I tried it, it's not as bad as I thought it might be, I'll add that option 👍 |
#48641