vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Suggestion issue for Variable Arity Parameters

Open stanNthe5 opened this issue 2 weeks ago • 3 comments

Example code:

class Test {
    static Foo foo = new Foo();
    static Foo bar = new Foo();

    void test(Foo... foo) {
    }

    void test2() {
        test(|); // cursor at "|"
    }
}

When the cursor is in the "test()", and trigger suggestions using shortcut, "foo" and "bar" will appear in a dropdown list for selection, there is no problem. After choosing one,the code is:

test(foo,|) ; // cursor at "|"

Now when I try to trigger suggestion, "foo" and "bar" not appear.

stanNthe5 avatar Nov 24 '25 13:11 stanNthe5