Java template regression
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java, typescript
调研方向
The regression is in the new-file template chooser, which should show class, interface and enum options for a new .java file. Reproduce it with the java.templates.typeComment setting non-empty, then compare against the setting removed and against 1.55 to find where the chooser stops appearing. The payload names no source files, so locate the template handling in the extension's TypeScript sources first. Done means the chooser appears with the setting set and the change is covered by a test.
由索引模型根据 Issue 内容生成。
描述
After updating to 1.56.0, the Java template chooser no longer appears when creating a new Java file.
To Reproduce
Steps to reproduce the behavior:
-
Add
"java.templates.typeComment": ["/// ", "///", "/// @author ${user}"],or any other non-empty array to your workspace settings. -
Create a new file
Foo.javavia the explorer -
The usual chooser for
class Foo, interface Foo, enum Fooshould appear but does not.
Environment
- Operating System: MacOS 14.6
- JDK version: OpenJDK Runtime Environment Temurin-25.0.4+7
- Visual Studio Code version: 1.141.0
- Java extension version: 1.56.0
Workaround
Remove the java.templates.typeComment setting.
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 549
- 平均合并
- 8 小时 20 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/vscode-java 的其他 Issue
-
JDK_HOME can be sorted after lower-priority auto-detected JDK sources可能已有人在做 @shblue21 于 119 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
redhat-developer/vscode-java#4426 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/vscode-java#4537 ·
维护者通常 1 天内回复
-
bug Lombok
难度 4/5 3-5 天 新手友好度 52/100
redhat-developer/vscode-java#4521 · 2 条评论 ·
维护者通常 1 天内回复
-
bug need info
难度 4/5 3-5 天 新手友好度 35/100
redhat-developer/vscode-java#4520 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
redhat-developer/vscode-java#4517 · 1 条评论 ·
维护者通常 1 天内回复
查看 redhat-developer/vscode-java 的全部 Issue
相似的 Issue
-
🐛 Bug: Calendar work items cannot be opened on mobile可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
jaegertracing/jaeger-ui#4596 ·
维护者通常 1 天内回复
-
area:tui enhancement platform:macos
难度 2/5 1-3 小时 新手友好度 66/100
anthropics/claude-code#101490 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
netlify/netlify-mcp#75 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复