Top
Best
New

Posted by JamesSwift 18 hours ago

Claude Code gets native LSP support(github.com)
407 points | 218 commentspage 3
helsinki 6 hours ago|
It has been in the source code for like two months. I've been using it for a while now.
stared 16 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).

jwr 14 hours ago||
I've been using https://github.com/isaacphi/mcp-language-server to do pretty much the same thing for quite a while now in Claude code. And it works with clojure-lsp unlike the limited set of plugins available now.
CameronBanga 16 hours ago||
Maybe I'm the only one, but does anyone else have an issue on macOS where Claude Code never updates itself automatically and you always have an error? I guess it's in times when I leave the CLI tool running and an update comes in overnight. But the alert seems to indicate it should update and fails.
pigeonhole123 2 hours ago||
I removed the locks directory which fixed it
Arubis 16 hours ago|||
Depends on your installation method. I have CC installed on macOS with `bun install` and it self-updates. But you could have different results with, oh, npm or yarn or homebrew or nix or probably asdfvm or maybe there’s a native .pkg I don’t know about or…you get the idea.
fahrradflucht 16 hours ago|||
I have the same issue since for ever (and update by hand because of it). I always assumed it is because it gets confused by me using Volta for node/npm version management and Volta‘s shim masking where Claude Code is globally installed.
cube2222 16 hours ago|||
Yeah, I uninstalled and reinstalled with homebrew, and it’s working well now.
fabbbbb 16 hours ago|||
Always have a lot of sessions running locally and don’t recall this
mokkol 16 hours ago||
Uninstall it and install it via home brew fixed it for me.
synergy20 4 hours ago||
dumb question,how to use it? claude is a cli tool,not an editor,why is lsp relevant?
odie5533 14 hours ago||
Is there a way to automatically run tests every file change, like post tool somehow, so that it returns a concise test run back to the LLM every tool use? That seems like it would be useful.
rane 12 hours ago||
You don't want to run tests after every file change, because that will distract Claude from finishing whatever it's doing and add noise to the context window. Of course the tests will be broken if Claude hasn't finished the full change yet.

Running tests makes most sense on the Stop hook event, but personally I've found CLAUDE.md instruction of "Run `just check` after changes" to be effective enough. The Stop hook has the issue that it will run the checks every time Claude stops responding, even after without any changes.

odie5533 11 hours ago||
Won't the LSP distract Claude too? I am trying to think of ways to make Claude faster at iterating by reducing tool calls. That always seems to be a bottleneck when it's doing tons of back-and-forth with tool calls.
rane 3 hours ago||
Depends on Anthropic has implemented it I guess. I haven't had it activate yet despite the prompt to install an LSP.
spellboots 14 hours ago||
Yes, you can do this with hooks: https://code.claude.com/docs/en/hooks
kristianp 13 hours ago||
Back when I was using CC, I had a "mandatory" development workflow that checks if the corresponding test file exists for the changed file, runs tests and runs the test coverage tool for the changed file.
brikym 11 hours ago||
As far as I know Claude models in VSCode + GitHub Copilot have had this for months now.
colonCapitalDee 16 hours ago||
Great news. I was just starting to explore creating a goto-definition skill for CC, glad I don't have to figure that out now :)
sathish316 15 hours ago||
Can you do @ and refer to a method or variable in a file with lsp support? Otherwise, how can lsp context be used in Terminal chat?
teaearlgraycold 15 hours ago|
A big use case will be to tell the LLM what the type of an expression is.
tdfirth 12 hours ago|
No rename symbol? What am I missing? It seems like a no brainer.
fueledbyzaatar 11 hours ago|
References + a few extra steps will give you rename symbol. Anthropic is seemingly wanting to experiment with this - so it makes sense to limit the integration points.
More comments...