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 {