How to make use of the LSP? #3686

Open
opened 2026-02-16 17:41:06 -05:00 by yindo · 2 comments
Owner

Originally created by @jgordijn-ah on GitHub (Dec 20, 2025).

Originally assigned to: @jayair on GitHub.

Question

I see that OpenCode supports LSP, but how can I use it? When I ask specifically, OpenCode doesn't know what to do. I tried many things, but didn't see it do anything with the LSP.

Image
Originally created by @jgordijn-ah on GitHub (Dec 20, 2025). Originally assigned to: @jayair on GitHub. ### Question I see that OpenCode supports LSP, but how can I use it? When I ask specifically, OpenCode doesn't know what to do. I tried many things, but didn't see it do anything with the LSP. <img width="2032" height="1569" alt="Image" src="https://github.com/user-attachments/assets/def25f94-48ad-46d8-bb77-2d699505573b" />
yindo added the docs label 2026-02-16 17:41:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 20, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #711: How to get opencode to use LSP?

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 20, 2025): This issue might be a duplicate of existing issues. Please check: - #711: How to get opencode to use LSP? Feel free to ignore if none of these address your specific case.
Author
Owner

@justfortheloveof commented on GitHub (Dec 20, 2025):

I had a quick look. The LSP diagnostics are given to the LLM in the output of the edit or write tools, allowing it to adjust according to diagnostic messages.

@justfortheloveof commented on GitHub (Dec 20, 2025): I had a quick look. The LSP diagnostics are given to the LLM in the output of the edit or write tools, allowing it to adjust according to diagnostic messages.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3686