Skip to content

Conversation

@stefanvanburen
Copy link
Member

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.

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.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 5, 2026, 6:27 PM

Copy link
Contributor

@emcfarlane emcfarlane left a 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.
@stefanvanburen
Copy link
Member Author

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.

Copy link
Member

@doriable doriable left a 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.

@stefanvanburen
Copy link
Member Author

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.

@stefanvanburen stefanvanburen merged commit 33d7ce0 into main Jan 5, 2026
10 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/hover-tests branch January 5, 2026 18:34
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.

4 participants