You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Save As Type dialog is not sorted alphabetically #114264
bugIssue identified by VS Code Team member as probable bugdialogsIssues with native and custom dialogsgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded
Install some custom languages, examples that it definitely works for are "Caddlefile Syntax", "Graphviz language", "Hjson", "Better TOML", "Svelte for VS Code".
Create a new blank file.
File --> Save as and expect to find it in the alphabetically sorted list (e.g. Toml from Better TOML between Swift and TypeScript) , instead find it at the bottom.
It appears to be in the order 'inbuilt languages sorted alphabetically' followed by 'other languages sorted somewhat randomly'.
Does this issue occur when all extensions are disabled?: No
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.
If you sort "registeredLanguageFilters" that should solve the problem no?
"All files" appearing first, current language appearing second and "No Extension" appearing last is handled by these lines:
If things still don't seem right, please ensure you're on version 32b28f6 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
It is intentional that the language mode picked for a file is the second most entry in the list, we have explicit code to change the order there.
As for untitled: did you have the language mode configured to ".bat"? I suggest we follow up in a new issue here as it is independent from the sorting fix.
Verification:
create an untitled file
save it
in the picker verify that the languages are sorted by name, specifically check for languages contributed by extensions such as JSONC
bugIssue identified by VS Code Team member as probable bugdialogsIssues with native and custom dialogsgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded
Activity
bpasero commentedon Jan 13, 2021
They are sorted on macOS, so it maybe Windows doing something weird. But we also dont sort the list explicitly:
vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.ts
Lines 278 to 293 in aa18ca6
vscode-triage-bot commentedon Jan 13, 2021
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!
bpasero commentedon Jan 13, 2021
Up for grab, I think we should sort the languages by name. We still have to make sure that:
rydwhelchel commentedon Jan 13, 2021
If you sort "registeredLanguageFilters" that should solve the problem no?
"All files" appearing first, current language appearing second and "No Extension" appearing last is handled by these lines:
vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.ts
Lines 308 to 313 in aa18ca6
Still getting the hang of all this, so please correct me if I am wrong.
bpasero commentedon Jan 14, 2021
Can we have this discussion in a Pull Request?
7 remaining items
vscode-triage-bot commentedon Jan 19, 2021
This bug has been fixed in to the latest release of VS Code Insiders!
Alexander Craggs (@popey456963), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 32b28f6 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
lramos15 commentedon Jan 28, 2021
Two things I notice.
.batnotAll Files.bpasero commentedon Jan 29, 2021
It is intentional that the language mode picked for a file is the second most entry in the list, we have explicit code to change the order there.
As for untitled: did you have the language mode configured to ".bat"? I suggest we follow up in a new issue here as it is independent from the sorting fix.
Verification: