Skip to content

Conversation

@stefanvanburen
Copy link
Member

See the added testcase; we don't want the trailing comment on the import to be included as a doc comment for the message without a comment.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

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

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


import "google/protobuf/cpp_features.proto"; // unused import

message TestTopLevel {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also handle:

import "google/protobuf/cpp_features.proto"; // unused import
message TestTopLevel {}

I think we need the comment handling to be aware that it is on it's own newline.

Copy link
Member Author

Choose a reason for hiding this comment

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

good call. let me make sure we handle that.

@stefanvanburen stefanvanburen merged commit 16e09a1 into main Jan 30, 2026
10 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/fix-hover-logic branch January 30, 2026 21:48
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