microsoft / microsoft/vscode-java-pack

Suggest applicable navigation options when hovering methods

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

@testforstephen đang làm issue này rồi.

Từ ngày 27/1/2022.

ai-triaged code-action enhancement feature-request
Ngôn ngữ chính
TypeScript
Star
352
Fork
166
Merge trung bình
17 giờ 47 phút
Pull request đã merge (30 ngày)
32

Mô tả

Suggestion

I would like to be provided with all relevant navigation options while pressing ctrl when hovering a java method.

Use Cases

When reading code, navigating code efficiently is crucial for understanding it quickly. I do not want to waste time jumping to a method declaration in an interface (current behavior) when I actually would have liked to jump to one of its implementations. On the other hand, I do not always want to jump to implementations but sometimes want to actually jump to the interface where the method had been declared. As the intended outcome depends on the current context, it would be nice to be actively presented with all applicable navigation options.

Examples

I press ctrl key while hovering a method invocation where the target method is declared in an interface. Then I would like to see a small select box containing the following options: 1. Go To Definition, 2. Go To Implementations. See https://images.app.goo.gl/kMsEM9vVToRRHB7s5 for an example of how eclipse handles this:
"Open Declaration" would map to "Go To Definition" in VS Code and "Open Implementation" would map to "Go To Implementations" in VS Code

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.