Browse Source

Fixes refresh issue when switching follow/unfollow

main
Eric Amodio 4 years ago
parent
commit
ebd75215a5
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/views/nodes/fileHistoryNode.ts

+ 6
- 0
src/views/nodes/fileHistoryNode.ts View File

@ -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;

Loading…
Cancel
Save