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

Fix type completion when type name conflicts #2232

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

gayanper
Copy link
Contributor

When type completion are applied where the same simple name already imported in the scope, the second type completion is completed as a fully qualified completion.

When type completion are applied where the same simple name already
imported in the scope, the second type completion is completed as a
fully qualified completion.
@eclipse-ls-bot
Copy link

Can one of the admins verify this patch?

@fbricon
Copy link
Contributor

fbricon commented Sep 20, 2022

add to whitelist

@jdneo
Copy link
Contributor

jdneo commented Sep 21, 2022

Do you mean in the below gif, java.util.List should be completed?

completion

@gayanper
Copy link
Contributor Author

Do you mean in the below gif, java.util.List should be completed?

Yes in Eclipse when we have a Simple Name conflict, the fully qualified name is used as the completion text.

Copy link
Contributor

@jdneo jdneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @gayanper for your contribution!

@jdneo jdneo added this to the End September milestone Sep 22, 2022
@jdneo jdneo added the bug label Sep 22, 2022
@gayanper
Copy link
Contributor Author

You are welcome @jdneo

@fbricon fbricon merged commit 021d9c3 into eclipse-jdtls:master Sep 22, 2022
jdneo added a commit to jdneo/eclipse.jdt.ls that referenced this pull request Feb 10, 2023
- fix the performance downgrade introduced by eclipse-jdtls#2232.
  With that change, triggering completion via keyboard shortcut will take a long time.
  Now with the change, it will only do context sensitive import rewrite when resolving
  completion items.

Signed-off-by: Sheng Chen <sheche@microsoft.com>
jdneo added a commit that referenced this pull request Feb 15, 2023
…ems (#2453)

* Only do context sensitive import rewrite when resolving completion items

- fix the performance downgrade introduced by #2232.
  With that change, triggering completion via keyboard shortcut will take a long time.
  Now with the change, it will only do context sensitive import rewrite when resolving
  completion items.
---------
Signed-off-by: sheche <sheche@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants