ruby-lsp
ruby-lsp copied to clipboard
Relative constants from included modules are predicted as absolute references
Description
After #2579 was fixed, relative constants are now predicted, but they are only predicted in their absolute form not in their relative form.
module Foo
Bar = 1
end
class Baz
include Foo
B # triggers the absolute `Foo::Bar` completion when it should suggest just the relative `Bar`
end
This issue is being marked as stale because there was no activity in the last 2 months
Verified as reproducible on the latest release.
This issue is being marked as stale because there was no activity in the last 2 months