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

cmd/govim: support multi-lined diagnostics in hover #1109

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

leitzler
Copy link
Member

Type parameter support in gotip has a few diagnostics that is
multi-lined. We now properly show them in hover popups as multiple
lines, and appends the source to the first line only.

Type parameter support in gotip has a few diagnostics that is
multi-lined. We now properly show them in hover popups as multiple
lines, and appends the source to the first line only.
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

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

LGTM assuming you've tested this locally?

Ideally would be nice to get some sort of automated coverage for things like this if possible?

@leitzler
Copy link
Member Author

Yes, tested locally. Tried to find any multi-lined diagnostics pre-Go1.18 to add as test but only found type parameter related ones :(

@leitzler leitzler merged commit 17940ff into main Sep 23, 2021
@leitzler leitzler deleted the cmd_govim_hover_multiline branch September 23, 2021 15:24
@leitzler
Copy link
Member Author

Wrote #1111 as a reminder to myself.

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.

None yet

2 participants