Kaynağa Gözat

Fixes refresh issue when switching follow/unfollow

main
Eric Amodio 4 yıl önce
ebeveyn
işleme
ebd75215a5
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. +6
    -0
      src/views/nodes/fileHistoryNode.ts

+ 6
- 0
src/views/nodes/fileHistoryNode.ts Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet