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

Exclude certain packages from autocomplete/autoimport #710

Closed
liangjacky opened this issue Nov 7, 2018 · 2 comments · Fixed by #1059 or eclipse-jdtls/eclipse.jdt.ls#1176
Closed

Comments

@liangjacky
Copy link

Autoimport does not work when you have packages that have the same class name.

For example, when typing List<String> a = new List<String>(), there will be errors because it doesn't know whether to resolve against java.util.List or java.awt.List.

If I know in my project I never use the java.awt package, can we add a setting to ignore that from the autocomplete/autoimport feature?

@fbricon
Copy link
Collaborator

fbricon commented Nov 28, 2018

We need a java.completion.filteredTypes preference, that basically behaves as JDT UI's type filter preference:

@MuhammadimYusoff
Copy link

Guys I am having problem with 'javax.swing.*' and related GUI library in VSCode, other thread explain I need to exclude it from my settings.json but nothing related to 'java.completion.filteredTypes' is placed as I have clean uninstall VSCode (The previous extensions and settings, this is a fresh install).

is there any related thread that mention about GUI related libraries fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment