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

IDE completion should know about renaming imports. #3979

Closed
odersky opened this issue Feb 11, 2018 · 1 comment
Closed

IDE completion should know about renaming imports. #3979

odersky opened this issue Feb 11, 2018 · 1 comment

Comments

@odersky
Copy link
Contributor

odersky commented Feb 11, 2018

Say you have

import java.util.{List => JList}

Then scope completion with J should give JList. Right now it cannot to that because we return lists of symbols from completion requests, and List is clearly not a valid completion.

For the moment, renamed imports are simply ignored. To fix this, it would be good to first have some tests for completion requests.

Duhemm added a commit to dotty-staging/dotty that referenced this issue Aug 21, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit to dotty-staging/dotty that referenced this issue Sep 4, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit to dotty-staging/dotty that referenced this issue Nov 1, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
@Duhemm
Copy link
Contributor

Duhemm commented Nov 18, 2018

There's a fix for that in #4977

Duhemm added a commit to dotty-staging/dotty that referenced this issue Nov 19, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit to dotty-staging/dotty that referenced this issue Nov 27, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit to dotty-staging/dotty that referenced this issue Nov 28, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit to dotty-staging/dotty that referenced this issue Nov 30, 2018
We introduce a new `RenameAwareScope` that tracks the name associated
with a symbol in the scope. Calling `toListWithNames` returns the list
of symbols in this scope along with the name that should be used to
refer to the symbol in this scope.

Fixes scala#3979
Duhemm added a commit that referenced this issue Dec 2, 2018
Fix #3979: Completion for renamed imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants