redhat-developer / redhat-developer/vscode-java

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

未关闭
#3,414 5 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

content-assist
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在空白 Java 项目中输入 "List",以 issue 中的环境详细信息为基准,重现补全列表。跟踪 Java 补全和 import 排名的入口点,然后验证 java.util.List 是否出现在靠前位置,同时不影响其他 List 包。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript
领域
developer-experience, tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。