Skip to content

Commit a1e493f

Browse files
committed
Fixes #4325 avoids needless refresh on rev nav
1 parent 889aa37 commit a1e493f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1010

1111
- Automatically stashes (and pops) uncommitted changes on Pull ([#4296](https://github.com/gitkraken/vscode-gitlens/issues/4296))
1212

13+
### Fixed
14+
15+
- Fixes the _Visual File History_ view from refreshing needlessly when the active editor changes between revisions ([#4325](https://github.com/gitkraken/vscode-gitlens/issues/4325))
16+
1317
## [17.1.1] - 2025-05-21
1418

1519
### Fixed

src/webviews/plus/timeline/timelineWebview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
537537
if (uri == null) {
538538
this._tabCloseDebounceTimer = setTimeout(async () => {
539539
this._tabCloseDebounceTimer = undefined;
540-
const changed = await this.updateScope(uri);
540+
const changed = await this.updateScope(uri, undefined, true);
541541
if (changed) {
542542
this.container.telemetry.sendEvent('timeline/editor/changed', this.getTelemetryContext());
543543
}
@@ -546,7 +546,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
546546
return;
547547
}
548548

549-
const changed = await this.updateScope(uri ? { type: 'file', uri: uri } : undefined);
549+
const changed = await this.updateScope(uri ? { type: 'file', uri: uri } : undefined, undefined, true);
550550
if (changed) {
551551
this.container.telemetry.sendEvent('timeline/editor/changed', this.getTelemetryContext());
552552
}
@@ -562,7 +562,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
562562
}
563563

564564
uri = await ensureWorkingUri(this.container, uri ?? this.activeTabUri);
565-
const changed = await this.updateScope(uri ? { type: 'file', uri: uri } : undefined);
565+
const changed = await this.updateScope(uri ? { type: 'file', uri: uri } : undefined, undefined, true);
566566
if (changed) {
567567
this.container.telemetry.sendEvent('timeline/editor/changed', this.getTelemetryContext());
568568
}

0 commit comments

Comments
 (0)