Sfoglia il codice sorgente

fixes overridden autolinks in commit details

main
Keith Daulton 2 anni fa
parent
commit
07cce470cb
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 6
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts Vedi File

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

Caricamento…
Annulla
Salva