Skip to content

VS Code with installed VLS does not recognize vue files, goes into infinite message sending #5720

@zfeher

Description

@zfeher

Vue - Official extension or vue-tsc version

3.0.8 - 3.1.1

VSCode version

1.105.1

Vue version

2.7.6, 3.5.22

TypeScript version

5.8.3

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 3.68 GB / 15.70 GB
  Binaries:
    Node: 22.20.0 - C:\Users\zfeher\AppData\Local\fnm_multishells\5424_1760862863447\node.EXE
    npm: 11.6.1 - C:\Users\zfeher\AppData\Local\fnm_multishells\5424_1760862863447\npm.CMD
    pnpm: 10.18.1 - C:\Users\zfeher\AppData\Local\fnm_multishells\5424_1760862863447\pnpm.CMD
  Browsers:
    Chrome: 141.0.7390.108
    Edge: Chromium (140.0.3485.94)
    Firefox: 144.0 - C:\Program Files\Mozilla Firefox\firefox.exe

package.json dependencies

Steps to reproduce

repo: vls-issue-pinned-ls-vue2

1, clone the repo
2, pnpm install
3, open repo in VS Code
4, open src/Component.vue

What is expected?

VLS to work with configured vue language server installed in repo node_modules.
(Using the bundled VLS works with both 3.0.8 and 3.1.1)

What is actually happening?

VLS shows many errors, doesn't recognize anything.

Image

Opening VLS Output will log infinite messages when src/Component.vue is open:

[Trace - 10:22:45 AM] Sending request 'textDocument/foldingRange - (195)'.
[Trace - 10:22:45 AM] Received response 'textDocument/foldingRange - (195)' in 1ms.
[Trace - 10:22:45 AM] Sending request 'textDocument/foldingRange - (196)'.
[Trace - 10:22:45 AM] Received response 'textDocument/foldingRange - (196)' in 1ms.
[Trace - 10:22:45 AM] Sending request 'textDocument/foldingRange - (197)'.
[Trace - 10:22:45 AM] Received response 'textDocument/foldingRange - (197)' in 1ms.
[Trace - 10:22:46 AM] Sending request 'textDocument/foldingRange - (198)'.
[Trace - 10:22:46 AM] Received response 'textDocument/foldingRange - (198)' in 1ms.
[Trace - 10:22:46 AM] Sending request 'textDocument/foldingRange - (199)'.
[Trace - 10:22:46 AM] Received response 'textDocument/foldingRange - (199)' in 1ms.
...

Tried this with 3.0.8 and latest 3.1.1 extensions as well without any success.

Created Vue 3 version as well vls-issue-pinned-ls-vue3 because need both to work for projects.

Link to minimal reproduction

https://github.com/zfeher/vls-issue-pinned-ls-vue2

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions