microsoft / microsoft/TypeScript

Add "find assignment references"

Open
#29,462 5 comments 5 reactions 1 assignee View on GitHub

@gabritto is already working on this.

Since Aug 8, 2023.

Domain: LS: Symbol Navigation Domain: LS: TSServer Rescheduled Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.