opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Restart LSP when it's stale

Open hicder opened this issue 1 month ago • 1 comments

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

hicder avatar Dec 21 '25 12:12 hicder

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.

github-actions[bot] avatar Dec 21 '25 12:12 github-actions[bot]