redhat-developer / redhat-developer/vscode-java
Java package taking 100% CPU under very specific conditions
未关闭
@snjeza 已经在做这个了。
开始于 2026年1月30日。
performance
upstream
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Here are the minimal conditions needed to reproduce this issue:
- A Java package has a dependency on Lombok.
- A method uses Lombok's
@NonNullon a parameter. - The first line of the method is a comment.
- The line after the comment is NOT empty.
- The
lombok.nonNull.exceptionType = JDKoption is set in alombok.configfile.
If you open this project in VS Code with the redhat.java extension, any modification in that same file that does not break the above criteria (such as adding a comment on the last line and saving) will take 100% of one CPU core. Do it 5 times, and it will take 5 cores!
This high CPU usage stops after a while, but it makes the whole machine unresponsive if you make several modifications quickly.
You can use this minimal repo to reproduce the bug: ipkiss42/vscode-java-4052.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。