Top
Best
New

Posted by JamesSwift 16 hours ago

Claude Code gets native LSP support(github.com)
380 points | 195 commentspage 2
zby 11 hours ago|
LSPs should expose their api through shell commands - then integrating it with any LLM would be trivial. And it would also be very useful for humans.
anamexis 11 hours ago|
You could use a CLI frontend for LSP, e.g. https://github.com/valentjn/lsp-cli

But why would that be better than LLMs using the LSP with a dedicated tool rather than a shell command tool?

wild_egg 10 hours ago||
CLIs don't use context space when unused. I find them almost universally preferable just because of that.

Models get stupid after the first 80-100k tokens are used so keeping bloated tools out of the window unless completely necessary is a pretty hard requirement for effective AI use IMO.

anamexis 10 hours ago||
Well you need to use context space somehow, to tell Claude that the LSP CLI exists and how to use it.
wild_egg 9 hours ago||
It takes a dozen tokens to put "when you need to do X, run `foo --help` and use it" in your CLAUDE.md.

Plenty of MCPs and plugins and whatnot out there idly consuming 5-25k tokens 24/7. How is that the same?

anamexis 9 hours ago||
Because you can enable/disable MCPs and plugins just like you can choose not to include that context in CLAUDE.md .

I do it all the time. I have several MCPs configured but only enable them on demand.

ramoz 14 hours ago||
I haven't come across a case where it has used the LSP yet.

Opus 4.5 is fairly consistent in running QA at proper times. Lint checks and all are already incorporated into a standard & native processes outside of IDE. I think lookup can be useful when definitions are hidden deep in hard to reach places on my disk... hasn't been a problem though the agent usually finds what it needs.

Anyway, here is what it stated it could do:

    > Do you have access to an lsp tool?

     Yes, I have an LSP tool with these operations:

    - goToDefinition - Find where a symbol is defined
    - findReferences - Find all references to a symbol
    - hover - Get documentation/type info for a symbol
    - documentSymbol - Get all symbols in a file
    - workspaceSymbol - Search for symbols across the workspace
    - goToImplementation - Find implementations of an interface/abstract method
    - prepareCallHierarchy - Get call hierarchy item at a position
    - incomingCalls - Find what calls a function
    - outgoingCalls - Find what a function calls
paxys 14 hours ago||
So they moved coding AIs from the IDE into a standalone CLI and now are building an IDE around the CLI?
ttoinou 12 hours ago||

  Added gift tag pictogram for year-end promotion message
What's that? We all want a promotion on Claude Code!
synergy20 2 hours ago||
dumb question,how to use it? claude is a cli tool,not an editor,why is lsp relevant?
mmaunder 13 hours ago||
Amazing how long this took. Serena has been doing a not bad job of helping solve this issue. But this has been an obvious built in for agents for some time now. https://github.com/oraios/serena
helsinki 4 hours ago||
It has been in the source code for like two months. I've been using it for a while now.
mrinterweb 13 hours ago||
I was hoping LSP support would be implemented. I know there are existing MCP servers that can do something kind of similar, but I doubt the agent would be smart enough to consistently utilize the LSP MCP. Here's hoping for less greps.
hexsprite 13 hours ago||
The typescript-lsp (and others?) is missing a critical part of LSPs whcih is the diagnostics for real-time errors and warnings. So you still need to run a linter, tsc, etc. to generate those sadly.
stared 14 hours ago|
If you want to explore the ecosystem of Claude Code plugins, see https://claude-plugins.dev/

With a fair disclaimer, that it is very easy to vibe-code a skill oneself, with both pros (you can create one just for you!) and cons (if you look online, these are of any quality, quite a few with some hard-coded versions or practices).

More comments...