Skip to content

Ensure getApplicableRefactors doesn't crash when given a position#28361

Merged
1 commit merged into
masterfrom
getApplicableRefactors_atPosition
Nov 16, 2018
Merged

Ensure getApplicableRefactors doesn't crash when given a position#28361
1 commit merged into
masterfrom
getApplicableRefactors_atPosition

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 6, 2018

This used position || textRange, intending to use whichever wasn't undefined, but that caused a crash when position was 0.

@ghost ghost force-pushed the getApplicableRefactors_atPosition branch from 5330db0 to f02b6b8 Compare November 9, 2018 16:59
@ghost ghost force-pushed the getApplicableRefactors_atPosition branch from f02b6b8 to 83777c0 Compare November 9, 2018 17:00
@ghost ghost merged commit 1089424 into master Nov 16, 2018
@ghost ghost deleted the getApplicableRefactors_atPosition branch November 16, 2018 17:30
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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