Skip to content

vue language tools not working / bad performance #3801

@boernard

Description

@boernard

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions