vuedx / languagetools

A collection of tools for better IDE experience.

Home Page:https://vuedx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Takeover mode

danielelkington opened this issue · comments

The official Vue docs recommend using Takeover Mode when using TypeScript and Volar to improve performance. However when using Takeover Mode, VueDX is automatically disabled as it depends on the built-in "TypeScript and JavaScript Language Features" extension that must be disabled to allow Takeover Mode.
image

Can VueDX support Takeover Mode? Alternatively if this isn't possible could a note be added to the README advising that Takeover Mode cannot be used if using Volar?

VueDX is an alternative to Volar. They key difference being:

  • Volar is implemented using language server protocol and it runs an embedded TypeScript language server.
  • VueDX is implemented as a TypeScript server plugin and it enhances already running TypeScript server (in builtin TypeScript extension).

So you should use either one of these.

Thanks @znck for the reply. I tried disabling Volar and just using VueDX in VS Code, however this results in no syntax highlighting in .vue files (same as #219). Is it really possible to use VueDX on its own, without Vetur/Volar?

Thanks; all working now. Recommend adding a note to the docs about this project's relationship with Volar to avoid confusion 😃