Skip to content

Find all references highlights all instances of symbol text #59

Open
@mbraude

Description

@mbraude

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions