Explorar el Código

Fixes doc tracking to avoid clearing on output

main
Eric Amodio hace 5 años
padre
commit
049eee4086
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +2
    -2
      src/views/nodes/fileHistoryTrackerNode.ts
  2. +2
    -2
      src/views/nodes/lineHistoryTrackerNode.ts

+ 2
- 2
src/views/nodes/fileHistoryTrackerNode.ts Ver fichero

@ -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 Ver fichero

@ -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) {

Cargando…
Cancelar
Guardar