From e4fb09ae600eeac8d6274008bd6bd262fd659a48 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 24 Oct 2020 17:05:14 -0400 Subject: [PATCH] Fixes issue with file history unpin refresh --- src/views/fileHistoryView.ts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/fileHistoryView.ts b/src/views/fileHistoryView.ts index b7d8a63..3c7f73b 100644 --- a/src/views/fileHistoryView.ts +++ b/src/views/fileHistoryView.ts @@ -12,8 +12,14 @@ const pinnedSuffix = ' (pinned)'; export class FileHistoryView extends ViewBase { protected readonly configKey = 'fileHistory'; + private _followCursor: boolean = false; + private _followEditor: boolean = true; + constructor() { super('gitlens.views.fileHistory', 'File History'); + + void setContext(ContextKeys.ViewsFileHistoryCursorFollowing, this._followCursor); + void setContext(ContextKeys.ViewsFileHistoryEditorFollowing, this._followEditor); } protected get showCollapseAll(): boolean { @@ -95,13 +101,6 @@ export class FileHistoryView extends ViewBase