Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Pavel Korytov :emacs:☮️
@sqrtminusone@mastodon.bsd.cafe  ·  activity timestamp 6 months ago

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&#39; to detect Vue by parsing package.json.</p><p>Second, somehow the server sends empty &quot;textDocument/publishDiagnostics&quot; messages about a second after sending one with diagnostics! As a result, the diagnostics appear for a second and then disappear.</p><p>For now, I&#39;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

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.5 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login