Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@myitcv
Copy link
Member

@myitcv myitcv commented Mar 6, 2020

In the current gopls implementation, if there is nothing under the
cursor when we call Hover we simply get a zero value protocol.Hover
returned (albeit via a pointer variable).

As of de023d59a5d1 gopls now returns a zero value of type
*protocol.Hover. Hence where we previously assumed we would not get a
nil value we now do.

Fix that.

In the current gopls implementation, if there is nothing under the
cursor when we call Hover we simply get a zero value protocol.Hover
returned (albeit via a pointer variable).

As of de023d59a5d1 gopls now returns a zero value of type
*protocol.Hover. Hence where we previously assumed we would not get a
nil value we now do.

Fix that.
@myitcv myitcv requested a review from leitzler March 6, 2020 09:39
Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

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

LGTM

@myitcv myitcv merged commit 9f08758 into master Mar 6, 2020
@myitcv myitcv deleted the cmd_govim_fix_hover_nil_response branch March 6, 2020 10:11
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.

3 participants