Procházet zdrojové kódy

Uses the default remote first in issue linking

main
Eric Amodio před 5 roky
rodič
revize
0a358110fa
2 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. +1
    -0
      CHANGELOG.md
  2. +7
    -0
      src/annotations/annotations.ts

+ 1
- 0
CHANGELOG.md Zobrazit soubor

@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#631](https://github.com/eamodio/vscode-gitlens/issues/631) - Remotes fail to show in gui
- Fixes [#633](https://github.com/eamodio/vscode-gitlens/issues/633) - Compare File with Previous Revision doesn't work if path contains '#'
- Fixes an issue where the _Open File_, _Open File on Remote_, and _Copy Remote Url to Clipboard_ commands didn't always work on changed files in the _Repositories_ view
- Fixes an issue where the default remote wasn't used first to provide automatic issue linking
## [9.4.1] - 2019-01-08

+ 7
- 0
src/annotations/annotations.ts Zobrazit soubor

@ -144,6 +144,13 @@ export class Annotations {
)} "Show Commit Details")`;
message = CommitFormatter.fromTemplate('${message}', commit);
remotes.sort(
(a, b) =>
(a.default ? -1 : 1) - (b.default ? -1 : 1) ||
a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' })
);
for (const r of remotes) {
if (r.provider === undefined) continue;

Načítá se…
Zrušit
Uložit