Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed error thrown when converting collapsed range #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlewand
Copy link

@mlewand mlewand commented Dec 15, 2016

The problem was caused by returning undefined instead of range instance when VSCode couldn't pick any word at given position.

Change in text returned in getSelectedText when there is no range is not necessary for this fix, but it will make the code more bulletproof in future.

As mentioned in #13 it looks also to fix #12, although I might be missing something in terms of error reproduction.

And by the way, thanks for nice extension! Definitely saved me some time.

@mlewand
Copy link
Author

mlewand commented Feb 8, 2017

@wmaurer any chances on getting it in? Shouldn't be hard for you to review, while will reduce exceptions thrown by the extension. Thanks!

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.

extension.changeCase.lower failed
1 participant