Fix the semantic diagnostics caching in builder to handle conversion from relative to buildInfo to absolute path (#33168)

Fixes #33161
This commit is contained in:
Sheetal Nandi authored and GitHub committed 2019-08-30 15:44:51 -07:00
1 parent e2b94231c8
commit 5ea4257e6e
2 files changed
+44 -1

No files matched your search

+1 -1
View File
@@ -1036,7 +1036,7 @@ namespace ts {
compilerOptions: convertFromReusableCompilerOptions(program.options, toAbsolutePath),
referencedMap: getMapOfReferencedSet(program.referencedMap, toPath),
exportedModulesMap: getMapOfReferencedSet(program.exportedModulesMap, toPath),
semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && arrayToMap(program.semanticDiagnosticsPerFile, value => isString(value) ? value : value[0], value => isString(value) ? emptyArray : value[1]),
semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && arrayToMap(program.semanticDiagnosticsPerFile, value => toPath(isString(value) ? value : value[0]), value => isString(value) ? emptyArray : value[1]),
hasReusableDiagnostic: true
};
return {