Skip to content

Commit

Permalink
clear buffer when a batch is completed (microsoft#10382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Dresser authored May 15, 2020
1 parent 1bcda64 commit dd697b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sql/workbench/api/common/extHostDataProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
this.sendMessages();
this._proxy.$onBatchComplete(handle, batchInfo);
}
$onResultSetAvailable(handle: number, resultSetInfo: azdata.QueryExecuteResultSetNotificationParams): void {
Expand Down

0 comments on commit dd697b3

Please sign in to comment.