opencode
opencode copied to clipboard
Restart LSP when it's stale
Description
rust-analyzer gets stale easily, especially when there are a lot of edits that it couldn't catch up. In that case, we should just restart the LSP.
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
This issue might be a duplicate of existing issues. Please check:
- #2156: Stale LSP errors - discusses how stale error diagnostics from LSP confuse Claude when it can't see the actual state
- #2694: stale rust-analyzer errors during edits - addresses the same problem of stale warnings/errors from rust-analyzer not resolving until rebuild
Feel free to ignore if none of these address your specific case.