6 ms·
Were you successful? I spent a lot of time too, but never got "go to definition" to actually work well.
by JelteF 3y ago
Were you successful? I spent a lot of time too, but never got "go to definition" to actually work well.
- felipeccastro 3y agoYes, with Solargraph. It uses type inference most of the time, and when it can’t guess the type, you can add YARD comments. Intellisense also works well (autocomplete).
- ansonhoyt 3y agoCheck out VSCode's "Ruby in Visual Studio Code" page [1]. Ruby LSP already does quite a bit and started gaining go-to method abilities last month [2], though it isn't complete quite yet [3]. It's build on Prism, so promises to be more robust than past attempts. Shopify has been moving fast on improving things here. The Rdbg integration works great too [4]. Just add a `launch.json` and VSCode can hook into the very nice capabilities Koichi Sasada has been adding to the official `debug` gem. [1]: https://code.visualstudio.com/docs/languages/ruby https://code.visualstudio.com/docs/languages/ruby [2]: https://github.com/Shopify/ruby-lsp/releases/tag/v0.12.4 https://github.com/Shopify/ruby-lsp/releases/tag/v0.12.4 [3]: https://github.com/Shopify/ruby-lsp/issues/899 https://github.com/Shopify/ruby-lsp/issues/899 [4]: https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg https://marketplace.visualstudio.com/items?itemName=KoichiSa...