Skip to content

Completion items in wrong order for overloaded methods #3206

Description

@charles-wangkai

In recent versions (from v1.17.0 to v1.20.0), the completion popup list shows overloaded methods from those with more complex parameters to those with fewer parameters from top to bottom. But what I want most times is the fewer parameters version, which leads to more "arrow down" key typing to select the expected item. It is annoying to impact coding productivity.

This seems a regression issue, since in early versions (up to v1.16.0) the order was reversed so that the fewer parameters version generally ranked higher and was placed at the top.

Environment
  • Operating System: All
  • JDK version: 17
  • Visual Studio Code version: 1.80.1
  • Java extension version: The issue first arose in recent versions (from v1.17.0 to v1.20.0), it was fine in early versions (up to v1.16.0)
Current Result

For example, the completion items show the three versions of Collectors.joining(...) in from complex to simple order, in the latest version v1.20.0:

Screenshot 2023-07-18 at 08 30 01
Expected Result

While the same three methods were displayed in from simple to complex order, in early versions (up to v1.16.0):

Screenshot 2023-07-18 at 08 31 47

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions