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 · 2 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
Copy link
Contributor

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

@github-actions github-actions bot added the Stale label Nov 28, 2024
@andyw8
Copy link
Contributor

andyw8 commented Nov 28, 2024

Verified as reproducible on the latest release.

@github-actions github-actions bot removed the Stale label Nov 29, 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

2 participants