perf(lsp): replace document registry source cache on update (#23311)

This commit is contained in:
Nayeem Rahman 2024-04-11 02:57:22 +01:00 committed by GitHub
parent 736f73b008
commit 34e1d0cdd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,6 +304,7 @@ delete Object.prototype.__proto__;
/** @type {ts.IScriptSnapshot} */ (sourceFile.scriptSnapShot),
),
);
documentRegistrySourceFileCache.set(mapKey, sourceFile);
}
return sourceFile;
},