Skip to content

Commit 9e58473

Browse files
committed
Fixes issue autolinks rendering when autolinks enabled is false
1 parent f884fc6 commit 9e58473

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
@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2525
- Fixes [#3911](https://github.com/gitkraken/vscode-gitlens/issues/3911) - Avoid Home opening when first-install isn't reliable (e.g. GitPod)
2626
- Fixes [#3888](https://github.com/gitkraken/vscode-gitlens/issues/3888) - Graph hover should disappear when right-clicking a row
2727
- Fixes [#3909](https://github.com/gitkraken/vscode-gitlens/issues/3909) - GitLens "Pull with Rebase" is not rebase, but merge
28+
- Fixes [#3841](https://github.com/gitkraken/vscode-gitlens/issues/3841) - Inspect & Graph Details: issue autolinks rendering when autolinks enabled is false
2829

2930
## [16.1.1] - 2024-12-20
3031

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
@@ -1239,6 +1239,7 @@ export class CommitDetailsWebviewProvider
12391239
preferences: current.preferences,
12401240
includeRichContent: current.richStateLoaded,
12411241
autolinkedIssues: current.autolinkedIssues?.map(serializeIssueOrPullRequest),
1242+
autolinksEnabled: configuration.get('views.commitDetails.autolinks.enabled') ?? false,
12421243
pullRequest: current.pullRequest != null ? serializePullRequest(current.pullRequest) : undefined,
12431244
wip: serializeWipContext(wip),
12441245
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)