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

Clear buffer when a batch is completed #10382

Merged
merged 1 commit into from
May 15, 2020
Merged

Conversation

anthonydresser
Copy link
Contributor

addresses #9779

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 33.841% when pulling 2db3f00 on feat/messagebatching into 0ad2a35 on master.

@@ -324,6 +324,8 @@ export class ExtHostDataProtocol extends ExtHostDataProtocolShape {
if (this.uriTransformer) {
batchInfo.ownerUri = URI.from(this.uriTransformer.transformOutgoing(URI.parse(batchInfo.ownerUri))).toString(true);
}
this.messageRunner.cancel(); // clear batch messages before saying we completed the batch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a bit more to indicate that this is done to ensure the messages are printed in the correct order

@kburtram
Copy link
Member

@anthonydresser I'll and port this to release/1.18 so I can close that issue from the milestone.

@kburtram kburtram merged commit dd697b3 into master May 15, 2020
@kburtram kburtram deleted the feat/messagebatching branch May 15, 2020 18:34
kburtram pushed a commit that referenced this pull request May 15, 2020
kburtram added a commit that referenced this pull request May 15, 2020
Co-authored-by: Anthony Dresser <andresse@microsoft.com>
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.

4 participants