redhat-developer / redhat-developer/vscode-java

New imports are added before folded ones when using editor.foldingImportsByDefault

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

还没有人认领这个 Issue。

editor-folding upstream
主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

When I autoimport the suggested claasname, prior to enabling the fold imports, it will add new import before folded ones.
image

Environment
  • Operating System: Windows 11
  • JDK version: 21
  • Visual Studio Code version: 1.94.2
  • Java extension version: 1.35.1

Steps:

  1. Open demo.zip
  2. Navigate to DemoApplication.java and try to add new import by typing claas name instead of ArrayList by autocompleting the classname.
  3. It will add new import before the folded ones

贡献指南

打开贡献指南

从这里开始

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

调研方向

在 DemoApplication.java 中使用 demo.zip 重现该行为,并使用步骤中描述的 editor.foldingImportsByDefault 和 Java 自动补全流程。检查扩展如何相对于已折叠的 import 放置新建议的 import。完成的标准是:在 import 已折叠时,新 import 被放置在适当的 import 部分中,并且报告的重现问题不再出现。

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

评估

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

把新 issue 发到你的邮箱

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