Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes intermittent issue with greater reliability of webview requests
- Fixes an issue with autolink enrichment for issues
- Fixes issues with incorrect aggregate contributor stats
- Fixes [#3841](https://github.com/gitkraken/vscode-gitlens/issues/3841) - Inspect & Graph Details: issue autolinks rendering when autolinks enabled is false

## [16.1.1] - 2024-12-20

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class GlCommitDetails extends GlDetailsBase {
}

private renderAutoLinks() {
if (this.isUncommitted) return undefined;
if (this.isUncommitted || !this.state?.autolinksEnabled) return undefined;

const deduped = new Map<
string,
Expand Down
9 changes: 8 additions & 1 deletion src/webviews/commitDetails/commitDetailsWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,13 @@ export class CommitDetailsWebviewProvider
preferences: current.preferences,
includeRichContent: current.richStateLoaded,
autolinkedIssues: current.autolinkedIssues?.map(serializeIssueOrPullRequest),
pullRequest: current.pullRequest != null ? serializePullRequest(current.pullRequest) : undefined,
autolinksEnabled: configuration.get('views.commitDetails.autolinks.enabled') ?? false,
pullRequest:
configuration.get('views.commitDetails.autolinks.enabled') &&
configuration.get('views.commitDetails.pullRequests.enabled') &&
current.pullRequest != null
? serializePullRequest(current.pullRequest)
: undefined,
wip: serializeWipContext(wip),
orgSettings: current.orgSettings,
inReview: current.inReview,
Expand Down Expand Up @@ -1426,6 +1432,7 @@ export class CommitDetailsWebviewProvider
configuration.get('views.commitDetails.autolinks.enhanced')
? pauseOnCancelOrTimeoutMapTuplePromise(commit.getEnrichedAutolinks(remote))
: undefined,
configuration.get('views.commitDetails.autolinks.enabled') &&
configuration.get('views.commitDetails.pullRequests.enabled')
? commit.getAssociatedPullRequest(remote)
: undefined,
Expand Down
1 change: 1 addition & 0 deletions src/webviews/commitDetails/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export interface State extends WebviewState {

commit?: CommitDetails;
autolinkedIssues?: IssueOrPullRequest[];
autolinksEnabled: boolean;
pullRequest?: PullRequestShape;
wip?: Wip;
inReview?: boolean;
Expand Down