microsoft / microsoft/TypeScript

Add "find assignment references"

Aperta
#29,462 5 commenti 5 reazioni 1 assegnatario Vedi su GitHub

@gabritto ci sta già lavorando.

Dal 8/8/2023.

Domain: LS: Symbol Navigation Domain: LS: TSServer Rescheduled Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.