clear out tabs when a input is set (#5789)

This commit is contained in:
Anthony Dresser
2019-05-31 11:38:53 -07:00
committed by Karl Burtram
parent 559c675164
commit 364206010b

View File

@@ -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);