redhat-developer / redhat-developer/vscode-java

Organize Imports should automatically add required modules in module-info

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

@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
  1. create a file App.java as below inside a modular project
  2. 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

Mở hướng dẫn đóng góp

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.

Đánh giá

Issue này chưa được đánh giá.

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.