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 Satya Rohith
parent be9c36cf6c
commit 9e6e25529b
No known key found for this signature in database
GPG Key ID: B2705CF40523EB05

View File

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