microsoft / microsoft/TypeScript-Sublime-Plugin
Find all references highlights all instances of symbol text
@steveluc is already working on this.
Since Apr 16, 2015.
- 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:
- Copy this text into a new .ts file:
class Foo {
public method(method: any) {
}
public test() {
this.method(null);
}
}
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.