Skip to content

Conversation

@doriable
Copy link
Member

This adds the links back for predeclared types, remote deps,
and WKTs in the LSP doc hovers.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 3, 2025, 6:34 PM

}

func getCommentsFromDef(def ast.DeclDef) string {
func (s *symbol) getComments(def ast.DeclDef) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

This func signature is a bit odd because it presumes that the def must be the same symbol?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah... I refactored this to be a little bit clearer, hopefully, let me know what you think!

Comment on lines 388 to 389
components := strings.Split(bsrTooltip, ".")
bsrTooltip = strings.Join(components[:len(components)-1], ".")
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need the string manipulation if you keep the type as the ir.FullName, then bsrTooltip.Parent().

))
}
}
return strings.Join(comments, "")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a strings.Builder here would be better?

@doriable doriable merged commit 0e1fad4 into main Nov 3, 2025
10 of 11 checks passed
@doriable doriable deleted the add-links-back-to-docs branch November 3, 2025 21:51
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