Microsoft/vscode

explorer.sortOrder default doesn't work well for hashes

Open

#140,915 建立於 2022年1月18日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)TypeScript (10,221 fork)batch import
feature-requestfile-explorerhelp wanted

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

image

With this folder https://github.com/lunapaint/imagetestsuite/tree/main/png, it starts off alphabetical but gives up shortly after. It looks like the it's sorting by the number first such that 3, 20, 100 appear in the "correct" order. I suggest making one of the following changes:

  • Only use that rule when the file name excluding the extension is a number (not sure what cases are being covered)
  • Add a setting for actual alphabetical sorting
  • My preference: Sort alphabetical if the file name looks like a hash (/[0-9a-f]{7,32}/)

Have been hitting this a decent amount recently, instead of a quick find via visual check I need to type out the first part of the hash to filter the explorer.

image

貢獻者指南