Skip to content

Add AST panel to Playground v2 - #3706

Closed
Jake Bailey (jakebailey) wants to merge 3 commits into
microsoft:v2from
jakebailey:playground-v2-ast-panel
Closed

Jake Bailey (jakebailey) wants to merge 3 commits into
microsoft:v2from
jakebailey:playground-v2-ast-panel

Conversation

@jakebailey

Copy link
Copy Markdown
Member

Let copilot make an AST viewer, let's see what it looks like

Match the v1 AST viewer to help users understand parser output
for the active file.
Child and cursor lookups could resolve against a newer AST than the
rendered root once a compile or edit changed the worker's sources, and
the hidden panel still queried the worker on every edit and cursor
move. Snapshot the tree per root request so lookups stay tied to the
rendered source, and query only while the panel is visible.

Start the panel collapsed like the v1 AST tab, surface AST failures in
the panel, keep a clicked node selected instead of jumping to its
deepest descendant, and support arrow-key tree navigation. Enum
reverse mappings also reported marker aliases such as FirstStatement,
so node kinds now use their declared names.
Cursor positions shared by adjacent nodes should identify the node that\nstarts at that position. This keeps the AST selection aligned with\nthe source identifier under the cursor.
@jakebailey Jake Bailey (jakebailey) added the deploy-preview Enables automatic deployments to preview environments on a PR label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your preview site is ready! Visit it here: https://victorious-plant-05c166c10-3706.centralus.5.azurestaticapps.net

@jakebailey

Copy link
Copy Markdown
Member Author

not a fan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-preview Enables automatic deployments to preview environments on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant