Skip to content

Smart select: only add line ranges if they’re contained by the next range#73850

Merged
jrieken merged 1 commit intomicrosoft:masterfrom
andrewbranch:bug/smart-select-line-range
May 24, 2019
Merged

Smart select: only add line ranges if they’re contained by the next range#73850
jrieken merged 1 commit intomicrosoft:masterfrom
andrewbranch:bug/smart-select-line-range

Conversation

@andrewbranch
Copy link
Member

Fixes this issue described here: microsoft/TypeScript#29071 (comment) (using typescript@master—PR was just merged today)

Before:

smart select 2

After:

smart select 3

I was looking to add a test in smartSelect.test.ts, but I'm not sure how to replicate this scenario in a test environment—whatever default set of SelectionRangeProviders that are registered in those tests don’t seem to produce ranges that exhibit the issue. I'm happy to add a test if someone can provide guidance on how I can set one up.

@jrieken jrieken added this to the May 2019 milestone May 17, 2019
@jrieken
Copy link
Member

jrieken commented May 24, 2019

lgtm - I will merge and add a test (needs some test suite changes)

@jrieken jrieken merged commit 323f92d into microsoft:master May 24, 2019
@jrieken
Copy link
Member

jrieken commented May 24, 2019

thanks!

@andrewbranch
Copy link
Member Author

🎉 Thanks @jrieken!

@andrewbranch andrewbranch deleted the bug/smart-select-line-range branch May 24, 2019 16:02
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants