ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Relative constants from included modules are predicted as absolute references

Open joeldrapper opened this issue 1 year ago • 3 comments

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

joeldrapper avatar Sep 28 '24 19:09 joeldrapper

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Nov 28 '24 12:11 github-actions[bot]

Verified as reproducible on the latest release.

andyw8 avatar Nov 28 '24 12:11 andyw8

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Jan 29 '25 12:01 github-actions[bot]