Skip to content

Conversation

@alt-romes
Copy link
Collaborator

Fixes #116
Fixes #108

Leverages DAP feature of returning structured variable reference rather
than the evaluation string when the evaluate request is for a single
variable.

This is useful in the Watch context and for interactive exploration in
the REPL, besides the variables pane.

`show <var>` or `print <var>` can be used to reproduce the old behavior
of printing the variable value whole.

Fixes #116
Fixes #108
@alt-romes alt-romes self-assigned this Oct 30, 2025
In the previous commit we used a contrived approach to returning a
structured representation for only variables which were evaluated.

However, we can go further and (even more easily/uniformly!) display
all evaluated expressions in their structured form.

The unstructured form can still be gotten by `show` or `print`
(In fact, all expressions evaluated end up being `print`ed to stdout so
you see them currently, besides the structured representation, even
without manually printing them).

Fixes #116 BETTER
@alt-romes alt-romes merged commit e1839b1 into master Oct 31, 2025
4 checks passed
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.

Return structured result for Evaluate requests feat: Watch expressions

2 participants