change way we show query plan (#2866)

This commit is contained in:
Anthony Dresser
2018-10-15 17:18:14 -07:00
committed by Karl Burtram
parent 225d168fdd
commit ac1f7542a9

View File

@@ -203,12 +203,12 @@ export class QueryResultsView {
if (!this._panelView.contains(this.qpTab)) {
this._panelView.pushTab(this.qpTab);
}
} else if (queryRunner.isQueryPlan) {
let disp = queryRunner.onResultSet(() => {
this.showPlan(queryRunner.planXml);
disp.dispose();
});
}
this.runnerDisposables.push(queryRunner.onResultSet(() => {
if (queryRunner.isQueryPlan) {
this.showPlan(queryRunner.planXml);
}
}));
if (this.input.state.activeTab) {
this._panelView.showTab(this.input.state.activeTab);
}