microsoft / vscode-pull-request-github

GitHub Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
MIT License
2.26k stars 554 forks source link

PR files should be sorted "naturally", like VS Code file explorer #5835

Open jakebailey opened 3 months ago

jakebailey commented 3 months ago

Steps to Reproduce:

  1. Open a PR containing files with numbers in them
  2. Observe the file list.

The PR viewer says:

image

But VS Code says:

image

Which is nicer.

alexr00 commented 2 months ago

@lramos15 could you point me to how the explorer sorts files?

lramos15 commented 2 months ago

It's a bit complex as a lot of settings back it

https://github.com/microsoft/vscode/blob/5b6444d082b6ab25a7c301e55a26d4701722d783/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts#L937-L1062