Ruby Extensions in VS Code
Back when I switched to VS Code I followed some advice and installed the Ruby extension by Peng Lv.
Some time more recently that extension was deprecated with a note to install the Ruby LSP extension instead, so I did that.
In news that I did not realize was related, F12 stopped working to jump to method definitions.
That is the ONE thing I need my IDE to do. Puzzled, but busy with other things, I just dealt with it by searching within files. I know the codebase well enough that I can guess where things live.
But last week git blame in the bottom bar also stopped working, so I spent a few hours figuring out what was going on with VS Code.
It turns out that Shopify’s Ruby extension does not HAVE support for jumping to method definitions yet! No wonder it doesn’t work. They are still working on the indexing. I have subscribed to issue #899 for updates.
I uninstalled Ruby LSP and switched to Solargraph. I do not know what else I have lost or gained, but F12 works again.
Copyright 2023 Wendy Smoak - This post first appeared on wsmoak.net and is CC BY-NC licensed.