Skip to content
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

Collapse identical lines in the debug console #104162

Closed
DanTup opened this issue Aug 6, 2020 · 6 comments
Closed

Collapse identical lines in the debug console #104162

DanTup opened this issue Aug 6, 2020 · 6 comments
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@DanTup
Copy link
Contributor

DanTup commented Aug 6, 2020

In the Chrome dev tools, duplicate lines are collapsed together:

Screenshot 2020-08-06 at 10 12 30

Here, the console.log has run 19 times but because the output was the same, it just shows a "19" alongside the first print.

I think this would work great in the Debug Console here too as it's not uncommon to have the same thing being printed a lot.

@isidorn
Copy link
Contributor

isidorn commented Aug 6, 2020

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog and we might add this in the future. Thanks!

@isidorn isidorn added this to the Backlog milestone Aug 6, 2020
@isidorn isidorn modified the milestones: Backlog, November 2020 Nov 2, 2020
@isidorn
Copy link
Contributor

isidorn commented Nov 16, 2020

This is now supported, try it out with VS Code insiders from Tuesday and let us know how it works for you!

Screenshot 2020-11-16 at 13 31 48

@isidorn isidorn added the verification-needed Verification of issue is requested label Nov 16, 2020
@DanTup
Copy link
Contributor Author

DanTup commented Nov 18, 2020

Screenshot 2020-11-18 at 11 57 40

Works great (although maybe it could do with some padding between it and the text). Thanks!

@isidorn
Copy link
Contributor

isidorn commented Nov 18, 2020

I went with 2 px pading. Based on your comment I have now increased it to 4px.
Based on your feedback adding verified label, thanks!

@isidorn isidorn added the verified Verification succeeded label Nov 18, 2020
@collinmdp
Copy link

What in the world? How do I disable this feature? I just spent the last few hours printing bits to the debug console and parsing the output using a diff tool with what is expected. The last time I ran this test, this feature didn't exist and everything worked as expected. When I right click and select "Copy All" it copies duplicate lines only once, which leaves out big groupings of bytes. The copied output doesn't even tell you that anything has been removed from the output. I can't find anything in the VSCode preferences to remove this option.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2020
@isidorn
Copy link
Contributor

isidorn commented Jan 4, 2021

@collinmdp I have pushed a fix for the "Copy All" not duplicating. You can try it out in vscode insiders from tomorrow and let us know how it goes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants
@DanTup @isidorn @collinmdp and others