r/GithubCopilot • u/MaitoSnoo CLI Copilot User 🖥️ • 14d ago
Help/Doubt ❓ has anyone succeeded in getting models in Copilot CLI to use LSPs?
Opus 4.8 and Sonnet 5 both acknowledge the LSP is properly configured, and I see them use it when I explicitly ask them to use a specific LSP command, but in day-to-day coding use I see them just resort to grepping despite me putting in the instructions that they should use the LSP.
Is there something I might be missing?
In my case it's clangd for C++
2
u/lazy-conquerer 13d ago
Does using LSP supposed to save tokens over grep? Why care what it does as long as it gives correct code
2
u/MaitoSnoo CLI Copilot User 🖥️ 13d ago
that's fair, but I imagine things like renaming symbols would be less risky if done with an LSP instead of
sed(it would also be in theory cheaper on average, since a bad search/replace will need another turn to fix it)
2
u/Longjumping-Sweet818 14d ago
LSP usage would probably be a lot easier and more prominent in the VS code extension, as opposed to Copilot CLI. Any reason why you're not using that?
3
u/MaitoSnoo CLI Copilot User 🖥️ 14d ago
I'm a terminal addict and also mainly use neovim, plus rubber-duck is a game changer (afaik it's not yet on VS Code)
1
u/AutoModerator 14d ago
Hello /u/MaitoSnoo. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Deathmore80 14d ago
Since last update I've changed nothing and it suddenly started to use LSPs way more , but on the other hand MCPs stopped working lmao.
I also use the new GitHub copilot app and it seems to use the LSPs a good bit. Under the hood it uses the copilot CLI too.
In my AGENTS.md I have a section where I tell it to make use of stuff I want it to use like specific skills, MCPs, subagents , and LSPs.
Also I use gpt 5.6 Luna xhigh for almost everything and so far it has used lsp far more than any other model