mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-02 15:21:19 -05:00
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
@@ -123444,6 +123444,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
||||
Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length);
|
||||
for (const newSourceFile of newSourceFiles) {
|
||||
filesByName.set(newSourceFile.path, newSourceFile);
|
||||
if (oldProgram.isSourceFileDefaultLibrary(newSourceFile)) {
|
||||
libFiles.add(newSourceFile.path);
|
||||
}
|
||||
}
|
||||
const oldFilesByNameMap = oldProgram.getFilesByNameMap();
|
||||
oldFilesByNameMap.forEach((oldFile, path) => {
|
||||
|
||||
Reference in New Issue
Block a user