From ebd75215a5ea490fc4e1691ec46dc370f43879ff Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 1 Dec 2020 03:59:59 -0500 Subject: [PATCH] Fixes refresh issue when switching follow/unfollow --- src/views/nodes/fileHistoryNode.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/nodes/fileHistoryNode.ts b/src/views/nodes/fileHistoryNode.ts index 6e3e628..d92c62b 100644 --- a/src/views/nodes/fileHistoryNode.ts +++ b/src/views/nodes/fileHistoryNode.ts @@ -2,6 +2,7 @@ import { Disposable, TreeItem, TreeItemCollapsibleState, window } from 'vscode'; import { CommitFileNode } from './commitFileNode'; import { LoadMoreNode, MessageNode } from './common'; +import { configuration } from '../../configuration'; import { Container } from '../../container'; import { FileHistoryTrackerNode } from './fileHistoryTrackerNode'; import { @@ -133,6 +134,11 @@ export class FileHistoryNode extends SubscribeableViewNode implements PageableVi repo.onDidChange(this.onRepositoryChanged, this), repo.onDidChangeFileSystem(this.onFileSystemChanged, this), repo.startWatchingFileSystem(), + configuration.onDidChange(e => { + if (configuration.changed(e, 'advanced', 'fileHistoryFollowsRenames')) { + this.view.resetNodeLastKnownLimit(this); + } + }), ); return subscription;