Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jul 17, 2025

We implemented more informative tooltips for Vala symbols recently. This does the same for C tags (as far as the parser allows).

The parser does not provide start and end lines for the tags, only the line on which the tag name occurs. As C methods often have the type on the previous line, the start line is decremented for methods. It is necessary to use Markup.escape_text as some C symbol definitions contain markup characters.

Screenshot from 2025-07-17 19 08 02

@jeremypw jeremypw mentioned this pull request Jul 18, 2025
2 tasks
@jeremypw jeremypw added this to the 8.2 milestone Aug 6, 2025
@jeremypw jeremypw requested a review from a team August 9, 2025 15:42
Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

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

Glad both previous and same line scenarios are covered!

@jeremypw jeremypw enabled auto-merge (squash) October 16, 2025 09:15
@jeremypw jeremypw merged commit 27db85a into master Oct 16, 2025
6 checks passed
@jeremypw jeremypw deleted the jeremypw/C-symbolpane/improve-tooltips branch October 16, 2025 18:16
@jeremypw jeremypw modified the milestones: 8.2, 8.1.2 Oct 18, 2025
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