Skip to content

vtsls initialization problem with vue-language-server #101

@robert-zaremba

Description

@robert-zaremba

Problem

I have a Vue.js project and I have vue-language-server active alongside vtsls.
When I open a Vue.js (Nuxt) project in Zed, the LSPs are loaded correctly (see attached image).
Image

When I start typing, (eg myObject.) the autocomplete queries are sent to vtsls, but nothing is returned - typescript completion doesn't work. Here are the vtsls logs:

// Send:
{"jsonrpc":"2.0","id":43,"method":"textDocument/codeLens","params":{"textDocument":{"uri":"file:///home/[redacted...]/app/app.vue"}}}

// Receive:
{"jsonrpc":"2.0","id":43,"result":null}

Workaround

When I click to restart vtsls (in the Language Servers menu) then it works well.

Goal

How to make it working without restarting vtsls each time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions