From dd697b337d428af6fe19e42319507effb9490852 Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Fri, 15 May 2020 11:34:48 -0700 Subject: [PATCH] clear buffer when a batch is completed (#10382) --- src/sql/workbench/api/common/extHostDataProtocol.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/workbench/api/common/extHostDataProtocol.ts b/src/sql/workbench/api/common/extHostDataProtocol.ts index 531d965624..360fe9ecc8 100644 --- a/src/sql/workbench/api/common/extHostDataProtocol.ts +++ b/src/sql/workbench/api/common/extHostDataProtocol.ts @@ -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 {