Posted on January 1, 2024 by Andrzej Dubaj
in
LispEmacsLSP
Upon updating a file, I’d expect flycheck to display up-to-date list of errors. It seems that lsp-mode (specifically ts-ls) is not sending correct diagnostics upon changing. Only after restarting lsp via running lsp-restart-workspace it updates as expected.
Example (Type is completely wrong, no LSP error):
Similar thing happens when I fix an error:
1. I'have a correctly displayed error
2. Fix the code
3. Still get a flycheck error message for old code
Not sure if useful, but here’s lsp doctor:
As for now I do not have solution for this issue.
My site is free of ads and trackers. Was this post helpful to you? Why not