|
@ -134,12 +134,13 @@ export class FileHistoryView extends ViewBase |
|
|
this._followCursor = enabled; |
|
|
this._followCursor = enabled; |
|
|
void setCommandContext(CommandContext.ViewsFileHistoryCursorFollowing, enabled); |
|
|
void setCommandContext(CommandContext.ViewsFileHistoryCursorFollowing, enabled); |
|
|
|
|
|
|
|
|
|
|
|
this.title = this._followCursor ? 'Line History' : 'File History'; |
|
|
|
|
|
this.titleContext = this._followCursor ? this.titleContext : undefined; |
|
|
|
|
|
|
|
|
const root = this.ensureRoot(true); |
|
|
const root = this.ensureRoot(true); |
|
|
root.setEditorFollowing(this._followEditor); |
|
|
root.setEditorFollowing(this._followEditor); |
|
|
void root.ensureSubscription(); |
|
|
void root.ensureSubscription(); |
|
|
void this.refresh(true); |
|
|
void this.refresh(true); |
|
|
|
|
|
|
|
|
this.titleContext = this._followCursor ? this.titleContext : undefined; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private _followEditor: boolean = true; |
|
|
private _followEditor: boolean = true; |
|
|