castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 26 forks source link

How to enable go to definition with solargraph? #239

Open saimageshvar opened 2 years ago

saimageshvar commented 2 years ago

Solargraph gem version 0.44.3 Ruby Version 2.7 Vs Code Version 1.65

I have installed Ruby(rebornix.ruby). To have better go to definition support, I have installed Solargraph. Below are my settings accordingly "ruby.intellisense": false "ruby.codeCompletion": false "solargraph.completion": true "solargraph.definitions": true "ruby.useLanguageServer": false

My method definitions are getting listed if I search them in the command palette. But Go To Definition and Find All References always returns No Definition Found. Am I missing anything?

castwide commented 2 years ago

One possible issue is that definitions aren't supported for the Ruby core and stdlib. They should work for your own code and most gems.