always use uri.toString() when comparing uris for equality

This commit is contained in:
isidor
2017-09-19 15:59:23 +02:00
parent 1fdb6afb13
commit ceb34634b1
12 changed files with 26 additions and 26 deletions

View File

@@ -101,7 +101,7 @@ export class GitContentProvider {
Object.keys(this.cache).forEach(key => {
const row = this.cache[key];
const isOpen = window.visibleTextEditors.some(e => e.document.uri.fsPath === row.uri.fsPath);
const isOpen = window.visibleTextEditors.some(e => e.document.toString() === row.uri.toString());
if (isOpen || now - row.timestamp < THREE_MINUTES) {
cache[row.uri.toString()] = row;