Browse Source

fixes overridden autolinks in commit details

main
Keith Daulton 2 years ago
parent
commit
07cce470cb
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 6
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts View 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 {

Loading…
Cancel
Save