mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Make sure we don't try calling a cached getErr on a closed resources that are in the getErr queue
This commit is contained in:
@@ -427,6 +427,7 @@ export default class BufferSyncSupport extends Disposable {
|
||||
return;
|
||||
}
|
||||
this.pendingDiagnostics.delete(resource);
|
||||
this.pendingGetErr?.files.delete(resource);
|
||||
this.syncedBuffers.delete(resource);
|
||||
syncedBuffer.close();
|
||||
this._onDelete.fire(resource);
|
||||
@@ -523,7 +524,9 @@ export default class BufferSyncSupport extends Disposable {
|
||||
this.pendingGetErr.cancel();
|
||||
|
||||
for (const file of this.pendingGetErr.files.entries) {
|
||||
orderedFileSet.set(file.resource, undefined);
|
||||
if (this.syncedBuffers.get(file.resource)) {
|
||||
orderedFileSet.set(file.resource, undefined);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user