mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
always use uri.toString() when comparing uris for equality
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user