[PR #6524] Add support for LSP workspace/didChangeWatchedFiles #11955

Closed
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Some LSP servers (e.g. pyright) rely on workspace/didChangeWatchedFiles to register new files/modules after creation to be able to resolve imports. Without this the LSP server will always return error diagnostics that it can't resolve the import until restarted. This makes working with python/pyright annoying since it will make the LLM go out of it's way to resolve this error.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6524 **State:** closed **Merged:** Yes --- Some LSP servers (e.g. pyright) rely on `workspace/didChangeWatchedFiles` to register new files/modules after creation to be able to resolve imports. Without this the LSP server will always return error diagnostics that it can't resolve the import until restarted. This makes working with python/pyright annoying since it will make the LLM go out of it's way to resolve this error.
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
yindo closed this issue 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11955