Pārlūkot izejas kodu

Sorts starred branches first in quickpick

main
Eric Amodio pirms 6 gadiem
vecāks
revīzija
baa2a9d715
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      src/quickpicks/branchesAndTagsQuickPick.ts

+ 2
- 1
src/quickpicks/branchesAndTagsQuickPick.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt