Skip to content

Commit

Permalink
change way we show query plan (microsoft#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Dresser authored and kburtram committed Oct 16, 2018
1 parent 225d168 commit ac1f754
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sql/parts/query/editor/queryResultsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ac1f754

Please sign in to comment.