From 364206010b82939bfc1ecc80ee9348aecb77e747 Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Fri, 31 May 2019 11:38:53 -0700 Subject: [PATCH] clear out tabs when a input is set (#5789) --- src/sql/workbench/parts/query/browser/queryResultsView.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/workbench/parts/query/browser/queryResultsView.ts b/src/sql/workbench/parts/query/browser/queryResultsView.ts index 50eca21400..8b4c654b63 100644 --- a/src/sql/workbench/parts/query/browser/queryResultsView.ts +++ b/src/sql/workbench/parts/query/browser/queryResultsView.ts @@ -287,6 +287,8 @@ export class QueryResultsView extends Disposable { this.topOperationsTab.view.state = this.input.state.topOperationsState; this.chartTab.view.state = this.input.state.chartState; + [this.resultsTab, this.messagesTab, this.qpTab, this.topOperationsTab, this.chartTab].forEach(t => t.clear()); + let info = this.queryModelService._getQueryInfo(input.uri); if (info) { this.setQueryRunner(info.queryRunner);