microsoft / vscode

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

Explorer Files Sort Order Extension API #161542

Closed UltimatePea closed 1 year ago

UltimatePea commented 1 year ago

For programming languages with non-ascii filenames, e.g. https://github.com/wenyan-lang/wenyan, https://github.com/AnonymousAAArdvark/qi/tree/master/docs, https://github.com/ProjectDimlight/RuCalculus, https://github.com/StepfenShawn/Cantonese, https://gitee.com/MulanRevive/mulan-rework, the ability to sort file names are especially important. However, the standard unicode sorting is not the dictionary sorting that is familiar to native speakers of foreign languages. This creates burden for programmers when they try to find files among a large list (O(n) time vs. O(log n) time) of files.

Can VSCode support custom sorting functionalities? An extension API would be better than a builtin option so that localization to different language names can be delegated to extension writers. This also helps to address #149951.

Another workaround would be to add it to LSP Protocol but I imagine that would be much more work.

gjsjohnmurray commented 1 year ago

/duplicate of #27286

VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!