Browse Source

Fixes doc tracking to avoid clearing on output

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

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

@ -102,7 +102,7 @@ export class FileHistoryTrackerNode extends SubscribeableViewNode
if (
this.uri === unknownGitUri ||
(Container.git.isTrackable(this.uri) &&
window.visibleTextEditors.some(e => e.document && UriComparer.equals(e.document.uri, this.uri)))
window.visibleTextEditors.some(e => e.document && e.document.uri.path === this.uri.path))
) {
return true;
}
@ -116,7 +116,7 @@ export class FileHistoryTrackerNode extends SubscribeableViewNode
return false;
}
if (UriComparer.equals(editor.document.uri, this.uri)) {
if (editor.document.uri.path === this.uri.path) {
if (cc !== undefined) {
cc.exitDetails = `, uri=${Logger.toLoggable(this._uri)}`;
}

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

@ -109,7 +109,7 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode
if (
this.uri === unknownGitUri ||
(Container.git.isTrackable(this.uri) &&
window.visibleTextEditors.some(e => e.document && UriComparer.equals(e.document.uri, this.uri)))
window.visibleTextEditors.some(e => e.document && e.document.uri.path === this.uri.path))
) {
return true;
}
@ -126,7 +126,7 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode
}
if (
UriComparer.equals(editor.document.uri, this.uri) &&
editor.document.uri.path === this.uri.path &&
(this._selection !== undefined && editor.selection.isEqual(this._selection))
) {
if (cc !== undefined) {

Loading…
Cancel
Save