From 34e1d0cdd4b7a00d48dee940024a7a695aa27f48 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 11 Apr 2024 02:57:22 +0100 Subject: [PATCH] perf(lsp): replace document registry source cache on update (#23311) --- cli/tsc/99_main_compiler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index ea70343be0..22e2a36417 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -304,6 +304,7 @@ delete Object.prototype.__proto__; /** @type {ts.IScriptSnapshot} */ (sourceFile.scriptSnapShot), ), ); + documentRegistrySourceFileCache.set(mapKey, sourceFile); } return sourceFile; },