redhat-developer / redhat-developer/vscode-java
auto generated prefs
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 546
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
[provide a description of the issue]
Every time command Java: Update Project is called few prefs are added by default to
- org.eclipse.jdt.apt.core.prefs:
org.eclipse.jdt.apt.genTestSrcDir=target/generated-test-sources/test-annotations - org.eclipse.jdt.core.prefs
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disable
Is it possible to disable this? In current repository that I am working on I can't modify those files, so I would like to keep them without modification or at least change path where I can specifically update and gitignore them.
I tried copping them to .vscode/ folder with no luck. New option java.settings.url to point custom pref settings with those options also didn’t work.
Any adviced what I could try or what I did wrong?
Environment
- Operating System:
- JDK version: JDK 11.0.1 or OpenJDK-15.0.2 (same behavior)
- Visual Studio Code version: 1.55.2
- Java extension version: 0.77.0
Steps To Reproduce
- Files org.eclipse.jdt.apt.core.prefs and org.eclipse.jdt.core.prefs have no mentioned options
- Run command Java: Update Project
- Files org.eclipse.jdt.apt.core.prefs and org.eclipse.jdt.core.prefs were automatically updated
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Xem xét lệnh Java: Update Project và cách lệnh này cập nhật org.eclipse.jdt.apt.core.prefs và org.eclipse.jdt.core.prefs. Tái hiện vấn đề với các phiên bản JDK, VS Code và extension được liệt kê, sau đó xác định liệu có thể vô hiệu hóa hoặc chuyển hướng các thay đổi tùy chọn này mà không sửa đổi các tệp trong repository hay không; được xem là hoàn tất khi các thay đổi không mong muốn không còn xảy ra hoặc một thiết lập được hỗ trợ được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100