diff --git a/packages/typescript/lib/node/proxyCreateProgram.ts b/packages/typescript/lib/node/proxyCreateProgram.ts index bd283ba7..a75edadd 100644 --- a/packages/typescript/lib/node/proxyCreateProgram.ts +++ b/packages/typescript/lib/node/proxyCreateProgram.ts @@ -180,6 +180,8 @@ export function proxyCreateProgram( ); // @ts-expect-error parsedSourceFile.version = originalSourceFile.version; + // @ts-expect-error + originalSourceFile.scriptKind = serviceScript.scriptKind; parsedSourceFiles.set(originalSourceFile, parsedSourceFile); } if (getExtraServiceScripts) {