We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a6891 commit e6aa7c2Copy full SHA for e6aa7c2
src/trackers/documentTracker.ts
@@ -394,7 +394,9 @@ export class DocumentTracker<T> implements Disposable {
394
if (this._documentMap.size === 0) return;
395
396
for await (const doc of this._documentMap.values()) {
397
- const repoPath = doc.uri.repoPath!.toLocaleLowerCase();
+ const repoPath = doc.uri.repoPath?.toLocaleLowerCase();
398
+ if (repoPath == null) continue;
399
+
400
if (changed?.removedRepoPaths?.has(repoPath)) {
401
void this.remove(doc.document, doc);
402
} else if (changed == null || changed?.addedOrChangedRepoPaths?.has(repoPath)) {
0 commit comments