Add ZED_CUSTOM_JAVA_PACKAGE variable?

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, rust
Lĩnh vực
tooling

Hướng nghiên cứu

The request is for a Java counterpart to the ZED_CUSTOM_RUST_PACKAGE task variable, which the issue links to the Zed tasks variables documentation. Start by reading that page and the tip in issue #177, then check whether the variable is defined in this Java extension or in Zed core, since the payload does not show that. Done means a clear answer on where the variable belongs, and either a proposal or a change there that sets ZED_CUSTOM_JAVA_PACKAGE from the file's package declaration.

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

Mô tả

There's a nice tip at #177 about creating a debugger config item that makes it easy to run/debug the currently selected file. However this part:

"mainClass": "$ZED_STEM",

really needs to be prefixed with the Java package name in order to be truly generic.

In the list of zed variables there's one called ZED_CUSTOM_RUST_PACKAGE that looks like a Rust version of something that would work. Would it be possible to add something like ZED_CUSTOM_JAVA_PACKAGE for Java? Then we could have something like:

"mainClass": "$ZED_CUSTOM_JAVA_PACKAGE.$ZED_STEM",
Ngôn ngữ chính
Rust
Star
225
Fork
47
Merge trung bình
3 giờ
Pull request đã merge (30 ngày)
5

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 zed-extensions/java

Tất cả issue của zed-extensions/java

Issue tương tự

Thêm issue về Rust

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.