From 8864a1d10fdd515d52fd436fc86af0b72656bfbd Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 22 Oct 2022 15:36:07 -0400 Subject: fix(lsp): regression - error when removing file (#16388) --- cli/tsc/99_main_compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tsc') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 7929d3b44..5ebcf6be1 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -312,7 +312,7 @@ delete Object.prototype.__proto__; releaseDocumentWithKey(path, key, _scriptKind, _impliedNodeFormat) { const mapKey = path + key; - documentRegistrySourceFileCache.remove(mapKey); + documentRegistrySourceFileCache.delete(mapKey); }, reportStats() { -- cgit v1.2.3