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

fix: shutdown of debug adapter being slow #1530

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

connor4312
Copy link
Member

This iteration we moved to named pipes for the connection to VS Code.
This exposed a race that wasn't hit for TCP connections: the destroy
call for streams was being invoked on the next tick after calling
transports' send(), which could be before the write happened.

The result was the DAP terminated() event didn't get sent through so
VS Code was just timing out the session after a second, which looked janky.

This iteration we moved to named pipes for the connection to VS Code.
This exposed a race that wasn't hit for TCP connections: the destroy
call for streams was being invoked on the next tick after calling
transports' send(), which could be before the write happened.

The result was the DAP terminated() event didn't get sent through so
VS Code was just timing out the session after a second, which looked janky.
@connor4312 connor4312 merged commit 6d4d41d into main Jan 23, 2023
@connor4312 connor4312 deleted the connor4312/fix-slow-shutdown branch January 23, 2023 20:00
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.

None yet

3 participants