-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug: show output
test when present with variablesReference
#172880
Conversation
Previously, if a DAP output event contained a variablesReference, we would entirely ignore the `output` text in favor of shows its variables. However, output can be richer than variable data: namely, it can show ANSI sequences which would be inappropriate to format in a variable `value`. In this PR, if an output event has a single variable in its `variablesReference` and output text, we show the output text instead of the variable value. (Maybe we should also log output as plain text, though this could be a confusing experience. I don't know of any DA's that actually emit >1 variable in their output.) For #172868 For #171732 (will need adoption in js-debug to actually fix those)
No, it need adoption in js-debug first. js-debug always sends an empty
Yep, looks like an ordering bug in core. I'll fix that since I know where to look. |
Oh, nevermind. It is an ordering problem but I'm not sure it's core's thing to fix. The "process exited" is sent from the 'parent 'virtual' debug session, where the console logs are sent from the child session, so they are enqueued separately in core. Will have to think of the right way to deal with that, but that would also be fixed with microsoft/debug-adapter-protocol#85 |
Fixes microsoft/vscode#172868 This now works as of microsoft/vscode#172880
Fixes microsoft/vscode#172868 This now works as of microsoft/vscode#172880
Previously, if a DAP output event contained a variablesReference, we
would entirely ignore the
output
text in favor of shows its variables.However, output can be richer than variable data: namely, it can show
ANSI sequences which would be inappropriate to format in
a variable
value
.In this PR, if an output event has a single variable in its
variablesReference
and output text, we show the output text insteadof the variable value. (Maybe we should also log output as plain text,
though this could be a confusing experience. I don't know of any DA's
that actually emit >1 variable in their output.)
For #172868
For #171732
(will need adoption in js-debug to actually fix those)