microsoft / microsoft/TypeScript

Add "find assignment references"

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

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

Từ ngày 8/8/2023.

Domain: LS: Symbol Navigation Domain: LS: TSServer Rescheduled Suggestion
Ngôn ngữ chính
Go
Star
111k
Fork
14.3k
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
132

Mô tả

Search Terms

find usage reference as LVALUE langauge services assignment read write

Suggestion

Add a language feature that will find a variable/property "x" when assigned a value in the code (or otherwise is used as an LVALUE).

Use Cases

Allows a user to find where a variable/property is set as opposed to defined or read.

Examples

When searching in VSCode, and my cursor is on "name" in

x = myPerson.name

a "find LVAUE references" call would return...

myPerson.name = "Jim";
or
this.name = "Ann";
or
myOtherPerson.name = "Arlo";

but not

class person { name: string; }
or
print(myPerson.name);
or
x = myPerson.name

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.