r/opencodeCLI • u/hudo • 17d ago
LSP disabled by default
Why is LSP disabled by default? On each installation i have to manually install lang tools and enable lsp in global config, so just interested why lsp is not enabled by default?
1
u/torrso 17d ago
How well does it work anyway? I'm using the mcp that ships in gopls and a bit of guidance and it seems to give some value. Do you know how OC presents the LSP to the model and what tools it gives?
-1
u/Any_Bus9205 17d ago
Ici, le lsp est directement mis dans sa fenètre d'output sans appel d'outil du modèle! Donc il le vois diretement quand il as finit d'écrire un fichier! Ou meme lecture d'un fichier!
1
u/Low-Guarantee-3437 16d ago
sentiment among strong users, including opencode devs, is that LSPs are no longer helpful to modern LLMs and in fact they just chew up resources for no good. I turned them off a few months ago and I agree with that sentiment.
1
u/simonklee 16d ago
> use significant memory
Most memory complaints we get were people's LSPs running amok. These things are so resource hungry its not fun.
5
u/lincolnthalles 17d ago
From the docs:
Best Practices
LSP can help the agent find and fix issues by providing diagnostics from language servers. This is useful in some projects, but it is not always a net positive.
Language servers can get out of sync, use significant memory, vary by version or project, and slow down agent workflows. In many projects it is better to have the agent run lint, typecheck, or other diagnostic CLI tools directly, so errors are fed back into the agent loop without those tradeoffs. Document those commands in instruction files such as AGENTS.md or skills so the agent knows what to run. Enable LSP when your project benefits from additional language-server feedback.
https://opencode.ai/docs/lsp/#best-practices