Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Apr 10, 2018

Fixes #23294

@ghost ghost requested review from sheetalkamat and armanio123 April 10, 2018 17:13
@ghost ghost force-pushed the document_highlights_files branch 2 times, most recently from ad4cae5 to fb1eb47 Compare April 10, 2018 18:04
@ghost
Copy link
Author

ghost commented Apr 10, 2018

@mhegazy Could you review the new change to documentHighlights.ts?

Debug.assert(program.redirectTargetsSet.has(fileName));
const redirectTarget = program.getSourceFile(fileName);
const redirect = find(sourceFilesToSearch, f => f.redirectInfo && f.redirectInfo.redirectTarget === redirectTarget)!;
fileName = redirect.fileName;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not sure this fileName is in the list either.. we should probally assert that it is.

@ghost ghost merged commit f6b206a into master Apr 11, 2018
@ghost ghost deleted the document_highlights_files branch April 11, 2018 21:07
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 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.

1 participant