Skip to content

LSP diagnostics not working in Emacs's eglot #2362

@edkolev

Description

@edkolev

TL;DR: tsgo does not send textDocument/publishDiagnostics to eglot (Emacs LSP implementation).

For comparision, typescript-language-server does send it.

Maybe there's a slight difference in the client capabilities which tsgo expects? Looking at the code I can't identify whether tsgo has some specific expectation for a client capability.

Here's a transcript of the communication eglot <-> LSP server, for both tsgo and `typescript-language-server``: https://gist.github.com/edkolev/c23f5cf03dc66f1efa2de855b5f7d2aa
The transcript is obtained by just opening a .ts file.

IIUC the transcript, tsgo doesn't send textDocument/publishDiagnostics. There seems to be no difference in how eglot presents itself to either server.

Related discussion in eglot's project: joaotavora/eglot#1559

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions