[PR #6233] feat(lsp): add restartServer operation #11792

Open
opened 2026-02-16 18:16:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6233

State: open
Merged: No


Summary

Add restartServer operation to the LSP tool

Problem

When installing new packages (e.g., adding pyav to pyproject.toml), pyright doesn't pick up the changes automatically. It continues throwing diagnostic errors on every edit until opencode is restarted. Also affects rust-analyzer.

Solution

Allow opencode to restart the LSP server by file extension without requiring a full opencode restart.

Related: #5899, #2156

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6233 **State:** open **Merged:** No --- ## Summary Add `restartServer` operation to the LSP tool ## Problem When installing new packages (e.g., adding `pyav` to `pyproject.toml`), pyright doesn't pick up the changes automatically. It continues throwing diagnostic errors on every edit until opencode is restarted. Also affects rust-analyzer. ## Solution Allow opencode to restart the LSP server by file extension without requiring a full opencode restart. Related: #5899, #2156
yindo added the pull-request label 2026-02-16 18:16:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11792