language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

vue language tools not working / bad performance

Open boernard opened this issue 1 year ago • 7 comments

Summary

The volar extension is not usable because code hints don't load.

I have a small nuxt project (4 components, 2 pages) with the following dev dependencies in package.json

  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@nuxtjs/tailwindcss": "^6.8.0",
    "@types/node": "^18.17.3",
    "autoprefixer": "^10.4.15",
    "nuxt": "^3.6.5",
    "postcss": "^8.4.28",
    "tailwindcss": "^3.3.3",
    "typescript": "^5.2.2",
    "volar": "^0.0.2",
    "volar-service-vetur": "latest"
  }

Whenever I hover over a component, the code hint stays in the state Loading... and never actually finishes loading. The CPU process for the volar extension goes up to >85%. Same result when I start writing a component and press CMD + space, it stays in the Loading state.

grafik

Also VSCode's status bar keeps indicating Initializing JS/TS language features

System setup

Apple M2 Visual Studio Code 1.85 TypeScript Vue Plugin (Volar) v1.8.25 Vue Language Features (Volar) v1.8.25

for profiling I pulled the current master of https://github.com/vuejs/language-tools at b8627e7

CPU-20231213T170606.cpuprofile.zip

when I open output in the vscode window and go to vue semantic server I get the following output vueSemanticServer.txt

Additional info

When I installed the volar language extension in Sublime, also there it doesn't work. Node process goes up in CPU usage and then continously crashes.

boernard avatar Dec 13 '23 16:12 boernard

I have the same problem as you. And my intellisense have slowed down.

funny-cat-happy avatar Dec 20 '23 13:12 funny-cat-happy

Identical setup as OP. Intellisense is very slow and code actions have to be disabled to get a sane file saving time.

huzaifahj avatar Jan 14 '24 11:01 huzaifahj

any feedback?

machao7 avatar Jan 24 '24 10:01 machao7

Experiencing the same in larger components.

DanielViberg avatar Jan 31 '24 12:01 DanielViberg

The same issue too. I am using Vue.volar & Vue.vscode-typescript-vue-plugin & takeover mode, It is so slow in both .ts .vue, which makes me feel so sad. But it works greet in .js with only Vue.volar and no takeover mode.

s3xysteak avatar Feb 01 '24 07:02 s3xysteak

Intelisense is a multi-second operation now, it's cripplingly bad.

douglasg14b avatar Mar 20 '24 05:03 douglasg14b

Is anyone looking into this? Vue could have the best feature set and this would still be a deal-breaker for any serious project in 2024.

huzaifahj avatar Mar 25 '24 12:03 huzaifahj

Thanks for your report, the performance issues caused by vue semantic server have been resolved in v2 via #3788.

johnsoncodehk avatar Jul 04 '24 08:07 johnsoncodehk

For me it didn't get resolved... I quickly uninstalled volar, reinstalled the vue - official extensions, restarted and tried a couple of other things but still, the behaviour is the same. I am on vscode 1.91.1

boernard avatar Jul 22 '24 11:07 boernard