浏览代码

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) {

正在加载...
取消
保存