Skip to content

ReferencesFull returns wrong span for definition #21301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
uniqueiniquity opened this issue Jan 19, 2018 · 0 comments
Closed

ReferencesFull returns wrong span for definition #21301

uniqueiniquity opened this issue Jan 19, 2018 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@uniqueiniquity
Copy link
Contributor

TypeScript Version: master branch

Search Terms:
Find All References, Definition, Visual Studio

Code

var x = 1;
x++;

Find all references on the second x returns response r.
Expected behavior:
r[0].definition.textSpan refers to first x.
Actual behavior:
r[0].definition.textSpan refers to second x.

@uniqueiniquity uniqueiniquity assigned ghost Jan 19, 2018
@mhegazy mhegazy added the Bug A bug in TypeScript label Jan 19, 2018
@mhegazy mhegazy added this to the TypeScript 2.8 milestone Jan 19, 2018
@ghost ghost added the Fixed A PR has been merged for this issue label Feb 7, 2018
@ghost ghost closed this as completed in #21748 Mar 1, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants