castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
424 stars 25 forks source link

Only import Class definitions when they are actually imported in the Ruby code #35

Open garyking opened 6 years ago

garyking commented 6 years ago

Right now, SolarGraph imports ALL Class definitions from the current workspace. Please instead only make it work when the class is actually imported via the Ruby code, with require/require_relative.

This might be a long-term aspirational goal? But would be ideal to have at some point.

castwide commented 6 years ago

Yeah, it's fair to call this long-term aspirational. It's on the roadmap, but there are a lot of cases to consider that make it decidedly non-trivial.