Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable go to definition with solargraph? #239

Open
saimageshvar opened this issue Mar 9, 2022 · 1 comment
Open

How to enable go to definition with solargraph? #239

saimageshvar opened this issue Mar 9, 2022 · 1 comment

Comments

@saimageshvar
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants