microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.93k stars 29.52k forks source link

Extract `SortOrder.Mixed` and `SortOrder.FilesFirst` as separate (additive) options #232338

Open LastExceed opened 1 month ago

LastExceed commented 1 month ago

There is no need for these 2 options to be mutually exclusive with any of the others, nor each other. Allowing combinations with these would enable more granular user configuration, without the need to implement any new comparisons for the sorting algorithm, nor sacrificing any possible configuration that is currently available.

Proposed design

Add 2 new checkboxes:

Example & Motivation

(For context, in Rust projects all¹ directories under /src are accompanied by a file with the same name) Image Notice how far apart the food.rs file and food directory are in the left example, despite sematically being the same thing. This is quite inconvenient

Considerations

Implementation

I'd like to implement this myself, but I need feedback on the proposed design, and guidance on how to perform the required migrations


¹pre-1.30 projects use a bunch of mod.rs files instead, but that's beside the point

vs-code-engineering[bot] commented 1 month ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!