Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 14, 2018

Should fix #22481 -- occasionally we get a bad request from the editor and the location isn't at an actual error location.

@ghost ghost requested a review from amcasey March 14, 2018 15:33
Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

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

I'd be surprised to learn this is the only consequence of being given an unexpected location, but I see nothing inherently wrong with this change. A comment might help though.

@ghost
Copy link
Author

ghost commented Mar 14, 2018

See #21607 (comment) (and microsoft/vscode#45785)

@ghost ghost merged commit 6ef2db5 into master Mar 14, 2018
@ghost ghost deleted the isVar branch March 14, 2018 17:57
mhegazy pushed a commit that referenced this pull request Mar 28, 2018
* inferFromUsage: Handle being at an unexpected location

* add comment
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
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.

TypeError: Cannot read property 'kind' of undefined in 'Object.isIdentifier' during 'getCodeFixes'

1 participant