Browse Source

Uses the default remote first in issue linking

main
Eric Amodio 6 years ago
parent
commit
0a358110fa
2 changed files with 8 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +7
    -0
      src/annotations/annotations.ts

+ 1
- 0
CHANGELOG.md View File

@ -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 View File

@ -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;

Loading…
Cancel
Save