solargraph icon indicating copy to clipboard operation
solargraph copied to clipboard

Support for inline RBS syntax

Open connorshea opened this issue 2 months ago • 1 comments

It'd be great to be able to use the inline RBS syntax that is in the RBS gem and is a standardized included-in-the-language alternative to YARD: https://github.com/ruby/rbs/blob/master/docs/inline.md#inline-rbs-type-declaration

It is supported already by Ruby LSP and Sorbet to an extent https://github.com/sorbet/sorbet/pull/8470

Both for the typechecking/indexing and just generally to make it easier to define types in a standard way across all Ruby code.

connorshea avatar Nov 11 '25 00:11 connorshea

Yes! I'd love to see this too. My understanding is that the upcoming version 4 of the RBS gem will provide some level of support - maybe we can build on top of that?

apiology avatar Nov 28 '25 18:11 apiology