castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 23 forks source link

does it support include key word? #25

Closed siumennel closed 6 years ago

siumennel commented 6 years ago

module MyModule def helloworld puts "helloworld" end end include MyModule hello

when i type hello then ctrl+space, can it suggest me the helloworld method? thx!

castwide commented 6 years ago

It supports both include and extend in most cases, but the global namespace is an exception. We can make it work, though. I'll add it to the roadmap.

castwide commented 6 years ago

A fix for modules included in the global namespace is pushed to the castwide/solargraph master branch. It'll be published in gem v0.17.4.

castwide commented 6 years ago

Gem 0.17.4 is published with support for included modules in the global namespace.