Skip to content

Missing source information causing "identical line collapsing" in VsCode Debug Console #5040

@tebeco

Description

@tebeco

Hello everyone,

TLDR:
"Ominisharp console output" is not providing "Source Information" to VsCode
microsoft/vscode#141218

Description (using browser)

Yesterday we noticed that when debugging inside VsCode some code that tried to write to StdOut, these lines could be collapsed.
This is the same things that you could see on Chromium-based browser.
Remember for later that the first example is not grouping while the second one is.
image

This can also be tempered with:
image

In VsCode

Javascript:
image

C# / F#:
image
image

Settings ?

We opened an issue on VsCode and we were hinted at:
image

issue is ... we did not knew or set it, meaning we were running with the default value all along and still have 2 different output on the same settings which lead us here:

From @weinand => microsoft/vscode#141218

If console output provides source information (in the following screenshot on the right hand side), then lines are only collapsed if their source is identical. @isidorn is this correct?
The following example shows that identical lines are collapsed in Node.js for the loop but not for individual console.log statements:
image

If a debug extension does not provide source information, then identical are always collapsed. This seems to be the case for C# and F#.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions