Why Nostr? What is Njump?
2025-04-20 21:54:47

Pavel Korytov :emacs:☮️ on Nostr: A lot of trouble with the new #Vue #LSP. First, it disables all other typescript ...

A lot of trouble with the new #Vue #LSP.

First, it disables all other typescript LSPs, even if there is no Vue in the project; fortunately, this can be fixed with:

(setq lsp-volar-take-over-mode nil)

Maybe a better way would be to advise `lsp-volar--activate-p' to detect Vue by parsing package.json.

Second, somehow the server sends empty "textDocument/publishDiagnostics" messages about a second after sending one with diagnostics! As a result, the diagnostics appear for a second and then disappear.

For now, I've worked around that by advising `lsp--on-diagnostics' to ignore empty messages if they come less than five seconds after a non-empty one. Not sure where to go next with this.

The code: https://sqrtminusone.xyz/configs/emacs/#fix-vue-semantic-server

Finally, the server sometimes crashes randomly. It happened once or twice today.

#Emacs
Author Public Key
npub15zlt94rw03ze79fe2r8n4u7xu2d6r5ck6zxeaykfx97qdp7fnd2svxfrsl