Skip to content

feat: support ETX in stdio console endings #1615

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

Merged
merged 5 commits into from
Mar 27, 2023
Merged

Conversation

connor4312
Copy link
Member

This continues #1590, but uses our existing dependency on split2 instead. They don't really support Symbol.split very well, so slight hackery is needed.

dancrumb and others added 3 commits March 3, 2023 19:50
Debug console output sometimes gets clumped together when capturing
stdout/err instead of console calls since data is sent to DAP
as soon as it arrives.

This change changes the behavior do that output is sent to DAP on
newlines.

It also looks out for ETX characters and, if it finds those, it switches
to sending output to DAP on each ETX. This allows for better handling
of multiline log entries.

Fixes microsoft/vscode#175763
@connor4312 connor4312 enabled auto-merge March 24, 2023 22:02
@vscodenpa vscodenpa added this to the March 2023 milestone Mar 24, 2023
@connor4312
Copy link
Member Author

The failing test is fixed in main already

TylerLeonhardt
TylerLeonhardt previously approved these changes Mar 25, 2023
@TylerLeonhardt
Copy link
Member

@connor4312 merged in main but the build is still red?

@connor4312 connor4312 modified the milestones: March 2023, April 2023 Mar 27, 2023
@connor4312 connor4312 merged commit a83fdb1 into main Mar 27, 2023
@connor4312 connor4312 deleted the connor4312/etx-output branch March 27, 2023 16:22
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.

5 participants