rhaiscript / lsp

Language server for Rhai.
Apache License 2.0
43 stars 4 forks source link

Pretty-print HIR #72

Closed tamasfe closed 2 years ago

tamasfe commented 2 years ago

Right now debugging the HIR is somewhat painful, there is no way to easily print symbols in a scope, and even printing a single symbol can be a hassle due to all references being indexes.

schungx commented 2 years ago

The Rhai panel is a great help. However, desperately need a popup menu item "Go to Panel" which just jumps to the relevant node in the syntax tree in the panel.

tamasfe commented 2 years ago

For reference, it is now also possible to dump the HIR via a vscode command.

I've already fixed a bug this way.