From 04d44a4fd138afb1fcef59efa4b20fbd16d8e0e2 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Wed, 1 May 2024 05:25:15 +0800 Subject: [PATCH] Update index.ts --- packages/typescript-plugin/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/typescript-plugin/index.ts b/packages/typescript-plugin/index.ts index 716c246d96..1bea049499 100644 --- a/packages/typescript-plugin/index.ts +++ b/packages/typescript-plugin/index.ts @@ -68,10 +68,11 @@ function createLanguageServicePlugin(): ts.server.PluginModuleFactory { decorateLanguageServiceHost(ts, language, info.languageServiceHost); startNamedPipeServer(ts, info.project.projectKind, info.project.getCurrentDirectory()); + // #3963 const timer = setInterval(() => { if (info.project['program']) { clearInterval(timer); - (info.project['program'] as any).__volar__ = { language }; + (info.project['program'] as any).__vue__ = { language }; } }, 50); }