Skip to content
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

Support find-all-references for a module specifier #15737

Merged
2 commits merged into from
May 19, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2017

Fixes #14780

The basic fix is relatively simple if not for /// <reference paths> directives.
There was previously no exposed way to find what file it pointed to. Added a method on Program to do that. tryResolveScriptReference was unreliable as it didn't handle extensions.
This also changes the range for a reference comment to be just the text of the module identifier.
We also now need to pass the Program to findAllReferences instead of just the checker.

Does not yet solve #15736.

@ghost ghost mentioned this pull request May 10, 2017
@ghost ghost requested a review from rbuckton May 11, 2017 21:20
@ghost ghost merged commit 38ece3b into master May 19, 2017
@ghost ghost deleted the findAllRefs_module branch May 19, 2017 15:12
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Find All References" For Required File
2 participants