Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Java template regression

Đang mở
#4,539 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, typescript
Lĩnh vực
developer-experience

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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:

  1. Add "java.templates.typeComment": ["/// ", "///", "/// @author ${user}"], or any other non-empty array to your workspace settings.

  2. Create a new file Foo.java via the explorer

  3. The usual chooser for class Foo, interface Foo, enum Foo should 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.

Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
549
Merge trung bình
8 giờ 20 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của redhat-developer/vscode-java

Tất cả issue của redhat-developer/vscode-java

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.