瀏覽代碼

Sorts starred branches first in quickpick

main
Eric Amodio 6 年之前
父節點
當前提交
baa2a9d715
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/quickpicks/branchesAndTagsQuickPick.ts

+ 2
- 1
src/quickpicks/branchesAndTagsQuickPick.ts 查看文件

@ -267,7 +267,8 @@ export class BranchesAndTagsQuickPick {
branches.sort(
(a, b) =>
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||
(a.starred ? -1 : 1) - (b.starred ? -1 : 1) ||
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||
a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' })
);
for (const b of branches) {

Loading…
取消
儲存