Skip to content

Commit fa9cea3

Browse files
committed
Fixes #4174 honors hover enrichment setting
1 parent 9e027bf commit fa9cea3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
3232
- Fixes load more not working on incoming changes in Commits/Repositories views ([#4154](https://github.com/gitkraken/vscode-gitlens/issues/4154))
3333
- Fixes incorrect settings.json entry for Google Gemini 2.0 Flash Thinking causes linter warning ([#4168](https://github.com/gitkraken/vscode-gitlens/issues/4168))
3434
- Fixes multiple autolinks in commit message are broken when enriched ([#4069](https://github.com/gitkraken/vscode-gitlens/issues/4069))
35+
- Fixes `gitlens.hovers.autolinks.enhanced` setting is not respected ([#4174](https://github.com/gitkraken/vscode-gitlens/issues/4174))
3536

3637
## [16.3.3] - 2025-03-13
3738

src/hovers/hovers.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ export async function detailsMessage(
228228
}
229229

230230
const cfg = configuration.get('hovers');
231-
const autolinks =
231+
const enhancedAutolinks =
232232
remote?.provider != null &&
233-
(options?.autolinks || (options?.autolinks !== false && cfg.autolinks.enabled && cfg.autolinks.enhanced)) &&
233+
options?.autolinks !== false &&
234+
(options?.autolinks || cfg.autolinks.enabled) &&
235+
cfg.autolinks.enhanced &&
234236
CommitFormatter.has(cfg.detailsMarkdownFormat, 'message');
235237
const prs =
236238
remote?.hasIntegration() &&
@@ -247,7 +249,7 @@ export async function detailsMessage(
247249

248250
const [enrichedAutolinksResult, prResult, presenceResult, previousLineComparisonUrisResult] =
249251
await Promise.allSettled([
250-
autolinks
252+
enhancedAutolinks
251253
? pauseOnCancelOrTimeoutMapTuplePromise(
252254
options?.enrichedAutolinks ?? commit.getEnrichedAutolinks(remote),
253255
options?.cancellation,

0 commit comments

Comments
 (0)