redhat-developer / redhat-developer/vscode-java

Is it possible to have java.util.List on favorite?

Open
#3,414 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

content-assist
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

When trying to import List from java.util (java.util.List) this option is way down in the list of possible packages. Is there any option to make it go up, something like a default or favorite option? (I'm aware of the java.completion.favoriteStaticMembers, that's why I'm asking). Thanks in advance.

Environment
  • Operating System: Linux
  • JDK version: 17.0.8
  • Visual Studio Code version: 1.84.2
  • Java extension version: 1.25.0
Steps To Reproduce
  1. Create a blank Java project
  2. Start typing "List"
  3. One can see lots of List packages but no java.util.List.

[Please attach a sample project reproducing the error]
No sample project required (IMO).

Please attach logs
No errors to show.

Current Result

It's required to scroll down and look for this package.

Expected Result

Since this is a quite common package, I'd like to see it on top.

Additional Informations

None.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the completion list in a blank Java project by typing "List", using the environment details in the issue as a baseline. Trace the Java completion and import-ranking entry points, then verify that java.util.List appears near the top without disrupting other List packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.