You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DAP: the debug console prints output events of the category telemetry, which DAP sends to telemetry instead #2197
The debug console of a DAP session prints the output events whose category is telemetry.
Expected
DAP's output event says of the category telemetry: "Send the output to telemetry instead of the client." VS Code doesn't show it either. A debug adapter can use this category for usage data in a JSON form that isn't meant for the user, for example vscode-js-debug.
Cause
DAPClient.output prints every output event. getContentType maps telemetry to ConsoleViewContentType.LOG_DEBUG_OUTPUT, which the console shows.
Suggested fix
Don't print output events of the category telemetry. At most, log them at DEBUG under LSP4IJ's DAP category, for whoever diagnoses a debug adapter.
Test
A session test with a fake debug adapter: an output event of the category telemetry doesn't reach the console, and one of the category console still does.
Found while reviewing #2167's change of the same method.
Activity
fix: the debug console of a DAP session no longer shows the debug ada…