Browse Source

Fixes file/line history title on last editor close

main
Eric Amodio 4 years ago
parent
commit
f773538ef3
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      src/views/nodes/fileHistoryTrackerNode.ts
  2. +2
    -0
      src/views/nodes/lineHistoryTrackerNode.ts

+ 2
- 0
src/views/nodes/fileHistoryTrackerNode.ts View File

@ -39,6 +39,8 @@ export class FileHistoryTrackerNode extends SubscribeableViewNode
getChildren(): ViewNode[] | Promise<ViewNode[]> {
if (this._child == null) {
if (this._fileUri == null && this.uri === unknownGitUri) {
this.view.titleDescription = undefined;
return [
new MessageNode(
this.view,

+ 2
- 0
src/views/nodes/lineHistoryTrackerNode.ts View File

@ -42,6 +42,8 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode
getChildren(): ViewNode[] | Promise<ViewNode[]> {
if (this._child == null) {
if (this.uri === unknownGitUri) {
this.view.titleDescription = undefined;
return [
new MessageNode(
this.view,

Loading…
Cancel
Save