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

Relative constants from included modules are predicted as absolute references #2627

Open
joeldrapper opened this issue Sep 28, 2024 · 0 comments
Labels
bug Something isn't working help-wanted Extra attention is needed non-vscode

Comments

@joeldrapper
Copy link

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 joeldrapper added bug Something isn't working help-wanted Extra attention is needed non-vscode labels Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help-wanted Extra attention is needed non-vscode
Projects
None yet
Development

No branches or pull requests

1 participant