microsoft / microsoft/TypeScript-Sublime-Plugin

Find all references highlights all instances of symbol text

Open
#59 4 comments 0 reactions 1 assignee View on GitHub

@steveluc is already working on this.

Since Apr 16, 2015.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

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.