Skip to content

Document highlights on yield keywords highlight other occurrences in …#24431

Merged
mhegazy merged 3 commits into
microsoft:masterfrom
Zzzen:master
May 31, 2018
Merged

Document highlights on yield keywords highlight other occurrences in …#24431
mhegazy merged 3 commits into
microsoft:masterfrom
Zzzen:master

Conversation

@Zzzen
Copy link
Copy Markdown
Contributor

@Zzzen Zzzen commented May 26, 2018

…the same body

See #23923 (comment)


verify.rangesAreOccurrences(false);

goTo.marker();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't think the rest of the test is necessary -- verify.rangesAreOccurrences should already loop over all ranges and test that all the other ranges are document highlights of it. See verifyRangesAreOccurrences in fourslash.ts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I saw this pattern in many fourslash tests so I just copy & paste it. Maybe we should remove these redundant/misleading code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 go for it

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented May 30, 2018

@Zzzen can you merge master into your branch again to get the tests to pass.

@mhegazy mhegazy merged commit 1f66f21 into microsoft:master May 31, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
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.

2 participants