Pārlūkot izejas kodu

fixup! pr commentds

main
Connor Peet pirms 4 gadiem
revīziju iesūtīja Eric Amodio
vecāks
revīzija
445b26f043
2 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. +1
    -0
      src/git/models/remote.ts
  2. +1
    -4
      src/quickpicks/remotesQuickPick.ts

+ 1
- 0
src/git/models/remote.ts Parādīt failu

@ -19,6 +19,7 @@ export class GitRemote<
return remotes.sort(
(a, b) =>
(a.default ? -1 : 1) - (b.default ? -1 : 1) ||
(a.name === 'origin' ? -1 : 0) ||
a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' })
);
}

+ 1
- 4
src/quickpicks/remotesQuickPick.ts Parādīt failu

@ -142,10 +142,7 @@ export class RemotesQuickPick {
clipboard?: boolean,
goBackCommand?: CommandQuickPickItem
): Promise<OpenRemoteCommandQuickPickItem | CommandQuickPickItem | undefined> {
const items = remotes
// show the origin as the top, 'default' pick
.sort(r => (r.name === 'origin' ? -1 : 0))
.map(r => new OpenRemoteCommandQuickPickItem(r, resource, clipboard)) as (
const items = remotes.map(r => new OpenRemoteCommandQuickPickItem(r, resource, clipboard)) as (
| OpenRemoteCommandQuickPickItem
| CommandQuickPickItem
)[];

Notiek ielāde…
Atcelt
Saglabāt