Skip to content

Stop collecting floating comments in LSP hover#4259

Merged
stefanvanburen merged 10 commits intomainfrom
svanburen/hover-test
Jan 6, 2026
Merged

Stop collecting floating comments in LSP hover#4259
stefanvanburen merged 10 commits intomainfrom
svanburen/hover-test

Conversation

@stefanvanburen
Copy link
Member

Comments that are separated by multiple newlines (e.g.) are "floating comments" that typically don't refer directly to the next field. We ought to not include them in the hover documentation.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

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

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

We want to check for both "expectedContains" and "expectedNotContains",
if set.
Now we keep track of the previous token in order to figure out if we
ought to break.
@stefanvanburen stefanvanburen changed the title Fix collecting floating comments in LSP hover Stop collecting floating comments in LSP hover Jan 6, 2026
@stefanvanburen stefanvanburen merged commit 7b6a021 into main Jan 6, 2026
11 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/hover-test branch January 6, 2026 18:29
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