From fe20f2ef68986fbc01c44d427c692396be293610 Mon Sep 17 00:00:00 2001 From: colisys <17246523+colisys@users.noreply.github.com> Date: Mon, 27 Oct 2025 00:16:38 +0800 Subject: [PATCH] fix(language-core): manually import typescript for required functionalities (#5707) --- packages/language-core/lib/compilerOptions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/language-core/lib/compilerOptions.ts b/packages/language-core/lib/compilerOptions.ts index 7ae177aedb..ee99e1f8e6 100644 --- a/packages/language-core/lib/compilerOptions.ts +++ b/packages/language-core/lib/compilerOptions.ts @@ -18,6 +18,9 @@ export function createParsedCommandLineByJson( json: any, configFileName?: string, ): ParsedCommandLine { + // manually import here, typescript/lib/tsc doesn't include required functionalities below anymore + ts = require('typescript/lib/typescript'); + const extendedPaths = new Set(); const proxyHost = { ...host, @@ -58,6 +61,8 @@ export function createParsedCommandLine( host: ParseConfigHost, configFileName: string, ): ParsedCommandLine { + // manually import here, typescript/lib/tsc doesn't include required functionalities below anymore + ts = require('typescript/lib/typescript'); try { const extendedPaths = new Set(); const proxyHost = {