-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Actually don't sort folders when they are all root folders #34052
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
Conversation
|
I see we do have https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/files/browser/views/explorerViewer.ts#L571 which marks roots as equal, but like you said it's related to V8 having an unstable sort, so I guess that alone won't work. |
0d51af4 to
8396f97
Compare
|
Yup! the original patch was mostly a proof of concept fix; it was my first time diving into the VSCode codebase, and this was easier than making the more correct fix, as you said, at the fileExplorer level. I've updated it to add a rootIndex property to FileStat and sorting on that if the fileStat is a root. This makes the FileStat constructor a little ugly though, i'm open to improvements. |
|
Alternatively, a |
|
@forivall thanks a lot for this PR. You could inject the Workspace Context Service to the Sorter using |
|
@isidorn cool! thanks! good ol' DI. (patch updated) |
|
@forivall looks good, thanks again! Merging in, will be available in tomorrow's insider build |
Fixes #34047
view the original poc fix at master...forivall:fix-multi-root-order-pocfix