solargraph
solargraph copied to clipboard
Support for inline RBS syntax
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.
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?