Skip to content

validation for highlighting range#2055

Merged
filipw merged 3 commits intomasterfrom
bugfix/highlighting-outofbounds
Jan 5, 2021
Merged

validation for highlighting range#2055
filipw merged 3 commits intomasterfrom
bugfix/highlighting-outofbounds

Conversation

@filipw
Copy link
Copy Markdown
Member

@filipw filipw commented Dec 28, 2020

When the client submits negative range we hit an argument exception in Roslyn (dotnet/vscode-csharp#4317).
This is not an optimal experience.

This PR adds basic validation for the range. The linked VS Code bug should be separately investigated but a validation on the server is needed regardless - similarly to what we do in other endpoints.

@filipw filipw merged commit e0f9971 into master Jan 5, 2021
@filipw filipw deleted the bugfix/highlighting-outofbounds branch January 5, 2021 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants