tui: ability to view active lsps (or errors if failed to start) #1306

Closed
opened 2026-02-16 17:30:22 -05:00 by yindo · 3 comments
Owner

Originally created by @rekram1-node on GitHub (Aug 14, 2025).

Originally assigned to: @thdxr on GitHub.

assigning to dax for APIs, cc @adamdotdevin

Originally created by @rekram1-node on GitHub (Aug 14, 2025). Originally assigned to: @thdxr on GitHub. assigning to dax for APIs, cc @adamdotdevin
yindo closed this issue 2026-02-16 17:30:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2025):

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

  • #324: LSP options are not actually existing (asks about LSP configuration and whether LSP feature exists)
  • #711: How to get opencode to use LSP? (about using LSP functionality)
  • #742: LSP Diagnostics return nothing in large project (about LSP diagnostics not working)
  • #1590: server.root is not a function (about LSP server errors)

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

@github-actions[bot] commented on GitHub (Aug 14, 2025): This issue might be a duplicate of existing issues. Please check: - #324: LSP options are not actually existing (asks about LSP configuration and whether LSP feature exists) - #711: How to get opencode to use LSP? (about using LSP functionality) - #742: LSP Diagnostics return nothing in large project (about LSP diagnostics not working) - #1590: server.root is not a function (about LSP server errors) Feel free to ignore if none of these address your specific case.
Author
Owner

@isichei commented on GitHub (Nov 22, 2025):

Hey, is issue currently being worked on? Was thinking something similar for a feature request and landed on this issue.

Originally I thought it would be quite useful just to dump what available / enabled LSPs exist on the system when you call the status command. Something similar to Mason on Neovim. Was messing around and got to the pic below (where you can see opencode can only detect the gopls LSP).

The implementation is just copying the interface you have for the formatters where enabled() gets Bun to call which on the relevant formatter command. So could be more complicated for a complete implementation for LSP Servers. Also I could imagine that this list could get to unwieldy so might need to be in a different command / status box.

Anyway, thought I would add this comment if it is a thing you would want and I can continue on implementing it properly

Image
@isichei commented on GitHub (Nov 22, 2025): Hey, is issue currently being worked on? Was thinking something similar for a feature request and landed on this issue. Originally I thought it would be quite useful just to dump what available / enabled LSPs exist on the system when you call the status command. Something similar to Mason on Neovim. Was messing around and got to the pic below (where you can see opencode can only detect the gopls LSP). The implementation is just copying the interface you have for the formatters where `enabled()` gets Bun to call `which` on the relevant formatter command. So could be more complicated for a complete implementation for LSP Servers. Also I could imagine that this list could get to unwieldy so might need to be in a different command / status box. Anyway, thought I would add this comment if it is a thing you would want and I can continue on implementing it properly <img width="758" height="691" alt="Image" src="https://github.com/user-attachments/assets/4a6bc32a-0bcc-40d8-8101-f32d49354ace" />
Author
Owner

@rekram1-node commented on GitHub (Nov 22, 2025):

We do show the active lsps already

Image

But showing errors could be good, that example u showed is a bit too noisy

@rekram1-node commented on GitHub (Nov 22, 2025): We do show the active lsps already <img width="527" height="347" alt="Image" src="https://github.com/user-attachments/assets/8fcefb9c-5cc0-49f1-9674-12822641c8e3" /> But showing errors could be good, that example u showed is a bit too noisy
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1306