Skip to content

Commit da6a4ab

Browse files
committed
Fixes issue autolinks rendering when autolinks enabled is false
1 parent 06f8cf2 commit da6a4ab

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
8282
- Fixes intermittent issue with greater reliability of webview requests
8383
- Fixes an issue with autolink enrichment for issues
8484
- Fixes issues with incorrect aggregate contributor stats
85+
- Fixes [#3841](https://github.com/gitkraken/vscode-gitlens/issues/3841) - Inspect & Graph Details: issue autolinks rendering when autolinks enabled is false
8586

8687
## [16.1.1] - 2024-12-20
8788

src/webviews/apps/commitDetails/components/gl-commit-details.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export class GlCommitDetails extends GlDetailsBase {
204204

205205
private renderAutoLinks() {
206206
if (this.isUncommitted) return undefined;
207+
if (!this.state?.autolinksEnabled) {
208+
return nothing;
209+
}
207210

208211
const deduped = new Map<
209212
string,

src/webviews/commitDetails/commitDetailsWebview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ export class CommitDetailsWebviewProvider
12411241
preferences: current.preferences,
12421242
includeRichContent: current.richStateLoaded,
12431243
autolinkedIssues: current.autolinkedIssues?.map(serializeIssueOrPullRequest),
1244+
autolinksEnabled: configuration.get('views.commitDetails.autolinks.enabled') ?? false,
12441245
pullRequest: current.pullRequest != null ? serializePullRequest(current.pullRequest) : undefined,
12451246
wip: serializeWipContext(wip),
12461247
orgSettings: current.orgSettings,

src/webviews/commitDetails/protocol.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export interface State extends WebviewState {
103103

104104
commit?: CommitDetails;
105105
autolinkedIssues?: IssueOrPullRequest[];
106+
autolinksEnabled: boolean;
106107
pullRequest?: PullRequestShape;
107108
wip?: Wip;
108109
inReview?: boolean;

0 commit comments

Comments
 (0)