Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 30, 2024
1 parent 3bc0e38 commit 04d44a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/typescript-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 04d44a4

Please sign in to comment.