vscode-clangd's "AST view" feature is a convenient way to look at the AST for a fragment of code you're interested in.
Sometimes, you want to share such a fragment with someone else, and to this end it would be convenient if the nodes in the AST view had a context menu item which copies the AST info of that node's subtree in JSON format.
The source data from the server is already in JSON, so this should be fairly straightforward to implement.
vscode-clangd's "AST view" feature is a convenient way to look at the AST for a fragment of code you're interested in.
Sometimes, you want to share such a fragment with someone else, and to this end it would be convenient if the nodes in the AST view had a context menu item which copies the AST info of that node's subtree in JSON format.
The source data from the server is already in JSON, so this should be fairly straightforward to implement.