diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 40a1bdcafff..b08f966864a 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -618,7 +618,7 @@ namespace ts { // A parallel array to projectReferences storing the results of reading in the referenced tsconfig files const resolvedProjectReferences: (ResolvedProjectReference | undefined)[] | undefined = projectReferences ? [] : undefined; const projectReferenceRedirects: Map = createMap(); - + const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); const structuralIsReused = tryReuseStructureFromOldProgram(); if (structuralIsReused !== StructureIsReused.Completely) { diff --git a/src/harness/vfs.ts b/src/harness/vfs.ts index 0e16b0fe715..2c1c6f2dd54 100644 --- a/src/harness/vfs.ts +++ b/src/harness/vfs.ts @@ -1155,7 +1155,7 @@ namespace vfs { EROFS: "file system is read-only" }); - export function createIOError(code: keyof typeof IOErrorMessages, details: string = "") { + export function createIOError(code: keyof typeof IOErrorMessages, details = "") { const err: NodeJS.ErrnoException = new Error(`${code}: ${IOErrorMessages[code]} ${details}`); err.code = code; if (Error.captureStackTrace) Error.captureStackTrace(err, createIOError);