Skip to content

Add hover for SceneGraph nodes and fields in xml components#1743

Open
chrisdp wants to merge 2 commits into
feature/xml-validationfrom
feature/xml-hover
Open

Add hover for SceneGraph nodes and fields in xml components#1743
chrisdp wants to merge 2 commits into
feature/xml-validationfrom
feature/xml-hover

Conversation

@chrisdp

@chrisdp chrisdp commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Add hover support in .xml component files (previously a no-op).

  • Hovering a node's tag name shows its description, parent, and docs link (built-in nodes) or its source component (project components).
  • Hovering an attribute name shows the field's type, default, and description.

Stacked on #1742.

chrisdp added 2 commits July 7, 2026 13:38
Hovering a node's tag name shows its description, parent, and docs link
(built-in nodes) or its source component (project components). Hovering an
attribute name shows the field's type, default, and description.

Adds XmlFile.getNodeAndFieldAt to resolve what a position points at, and
fixes getTokenAt to use end-exclusive containment so a caret at a tag
name's first character resolves to the name rather than the preceding `<`.
@chrisdp chrisdp self-assigned this Jul 16, 2026
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.

1 participant