oracle / javavscode

Java platform support for Visual Studio Code for full featured Java development (edit-compile-debug & test cycle)
Apache License 2.0
231 stars 31 forks source link

Bug: jdk.java.imports.countForUsingStarImport and jdk.java.imports.countForUsingStaticStarImport not working #277

Closed CloudSen closed 2 months ago

CloudSen commented 2 months ago

What happend?

I have customized the following user configuration, and I haven't modified the workspace configuration:

"jdk.java.imports.countForUsingStarImport": 5,
"jdk.java.imports.countForUsingStaticStarImport": 3,
"java.completion.importOrder": [
        "",
        "javax",
        "java",
        "#"
    ],

And I'm using 7 class in java util packages:

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Properties;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;

When I use orgranize imports, it not running as expected, it still lists 7 classes.

What expected

I need import java.util.* when more than 5 imports.
Same problem with jdk.java.imports.countForUsingStaticStarImport.

Version Info

CloudSen commented 2 months ago

I'm sorry, It's my problem.
I confused the configuration of javavscode and javaLanguageSupport plugins.
Everything is working well now.
Thanks for providing such a useful tool ^_^~