redhat-developer / redhat-developer/vscode-java
Organize Imports should automatically add required modules in module-info
Đang mở
@snjeza đang làm issue này rồi.
Từ ngày 13/4/2020.
code action
- 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ả
When I do Organize Imports, I'd like for the module-info.java file to be updated automatically as well.
Environment
- Operating System: Windows 10
- JDK version: 14
- Visual Studio Code version: 1.44.0
- Java extension version: 0.59.1
Steps To Reproduce
- create a file
App.javaas below inside a modular project - do
Organize Imports
class App {
void run() {
HttpClient client;
}
}
Current Result
After importing java.net.http.HttpClient, the module-info.java file is unchanged.
Expected Result
The module-info.java file is automatically updated with:
requires java.net.http;
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.
Đánh giá
Issue này chưa được đánh giá.