Ver código fonte

fixes overridden autolinks in commit details

main
Keith Daulton 2 anos atrás
pai
commit
07cce470cb
1 arquivos alterados com 6 adições e 2 exclusões
  1. +6
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 6
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts Ver arquivo

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

Carregando…
Cancelar
Salvar