microsoft / microsoft/TypeScript-Sublime-Plugin

Find all references highlights all instances of symbol text

Aperta
#59 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@steveluc ci sta già lavorando.

Dal 16/4/2015.

Bug
Lingua principale
JavaScript
Stelle
1.7k
Fork
236
Merge medio
21g 13h
PR unite (30g)
1

Descrizione

Find all references should only highlight the symbol, not all instances of the symbol text.

Steps to reproduce:

  1. Copy this text into a new .ts file:

class Foo {
public method(method: any) {
}

public test() {
    this.method(null);
}

}

  1. Put the cursor on 'method' and press ctrl +t, ctrl + r.

Expected: There is a reference to the method declaration, and the symbol 'method' is underlined.
Actual: All instances of the text 'method' are highlighted in the reference. So in

D:/async/experimental/test.ts:
2: public method(method: any) {

All 'method' strings are underlined. Only the first should be underlined.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.