mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
release cached tree in compilation settings change
This commit is contained in:
1 parent
de37f35f7c
commit
c0bcf8f10c
5 files changed
+25
-6
No files matched your search
@@ -3284,7 +3284,7 @@ namespace ts {
|
||||
const scriptKind = ts.getScriptKind(fileName, host);
|
||||
const compilerOptions = host.getCompilationSettings();
|
||||
let sourceFile: SourceFile;
|
||||
if (currentFileName !== fileName) {
|
||||
if (currentFileName !== fileName || (currentCompilerOptions && !mapIsEqualTo(compilerOptions, currentCompilerOptions))) {
|
||||
// Release the current document
|
||||
if (currentFileName) {
|
||||
documentRegistry.releaseDocument(currentFileName, currentCompilerOptions);
|
||||
|
||||
Reference in new issue
Block a user