-
Notifications
You must be signed in to change notification settings - Fork 343
Add LSP hover tests #4254
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
Add LSP hover tests #4254
Conversation
This takes an initial stab at adding some tests to the LSP implementation, starting with the hover feature. (I figure we can share the server across the other features.) We've been bitten a couple times by breaking changes that would be great to catch with tests.
|
The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).
|
emcfarlane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is exactly what we needed. I can help followup with coverage.
Haven't been able to figure out how to make the paths work; maybe someone else more familiar with testing windows would know. And use t.Context instead of parameter.
|
Ended up skipping the tests on windows for now; if we can figure out how to make the paths work we ought to re-enable them. |
doriable
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think overall looks good, I'm pre-approving because I hope that adjustments are minimal. Thanks for doing this, this is super helpful and will hopefully make changes to the LSP more stable.
|
Going to merge as-is; I think there are probably a few other hover situations we ought to be testing (mostly options, but perhaps there are others), but don't want to churn much more after approval. |
This takes an initial stab at adding some tests to the LSP implementation, starting with the hover feature. (I figure we can share the server across the other features.) We've been bitten a couple times by breaking changes that would be great to catch with tests.