Przeglądaj źródła

fixes overridden autolinks in commit details

main
Keith Daulton 2 lat temu
rodzic
commit
07cce470cb
1 zmienionych plików z 6 dodań i 2 usunięć
  1. +6
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 6
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts Wyświetl plik

@ -740,8 +740,12 @@ export class CommitDetailsWebviewView extends WebviewViewBase
let autolinks;
if (commit.message != null) {
const customAutolinks = this.container.autolinks.getAutolinks(commit.message);
const providerAutolinks = this.container.autolinks.getAutolinks(commit.message, remote);
autolinks = new Map(union(customAutolinks, providerAutolinks));
if (remote != null) {
const providerAutolinks = this.container.autolinks.getAutolinks(commit.message, remote);
autolinks = new Map(union(providerAutolinks, customAutolinks));
} else {
autolinks = customAutolinks;
}
}
return {

Ładowanie…
Anuluj
Zapisz