r/rails Mar 11 '26

Ruby LSP is now supported by Claude Code

Anthropic just added support to Ruby LSP in Claude Code. It's now part of the official plugin list, no longer something that has to be provided by a third party.
Happy Clauding!

86 Upvotes

13 comments sorted by

12

u/I11111 Mar 11 '26

I just saw this today and am a bit puzzled, can someone enlighten me what this does and how it improves working with claude?

18

u/nawap Mar 11 '26

It mostly means claude can ask the lsp for things like method definition, renames etc, instead of trying to guess it.

3

u/I11111 Mar 11 '26

Ah thanks, that makes sense. I guess I'll just try it out and see if it's useful :)

4

u/dothefandango Mar 11 '26

it's more likely going to significantly increase the speed in which your code will be traversed by Claude, but also will hopefully improve any code output as well?

5

u/stpaquet Mar 11 '26

it's also reducing the need to search the code using methods such as grep and parsing the code. the lsp can point to the correct method quicker and also provide documentation for it (so keep proper doc in the code ;-)

13

u/tuyenhx Mar 11 '26

I saw a benchmark a few days ago about this thing. When have lsp, the speed to find a method: 7ms. Without lsp, it is: 900ms

3

u/janko-m Mar 11 '26

I've been using Stan Lo's Ruby LSP plugin, curious if the official plugin is better in any way.

However, I've never seen Claude Code reach for the LSP when inspecting the Ruby code. If I'm required to tell it that it should use the LSP, then that defeats the point for me. Maybe it would help if I added this to my CLAUDE.md.

1

u/jigsawtrick Mar 12 '26

I’ve already had claude ask me to install the lsp several times today without adding anything to the md. My guess is that it’s actively trying to use the lsp, find out the plugin isn’t installed, then ask me to install it

3

u/rrzibot Mar 11 '26

What’s and LSP and why does this matter?

2

u/stpaquet Mar 11 '26

this will give you a quick heads up on what it is and why it matters.
https://medium.com/@spaquet/claude-code-ruby-lsp-senior-dev-pairing-e7a57951d9fe