mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 11:01:37 -05:00
store active tab so it isn't overwritten (#5875)
(cherry picked from commit 912c80e496)
This commit is contained in:
committed by
Charles Gagnon
parent
0e2d1e515e
commit
6c98603979
@@ -195,6 +195,7 @@ export class QueryResultsView extends Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setQueryRunner(runner: QueryRunner) {
|
private setQueryRunner(runner: QueryRunner) {
|
||||||
|
const activeTab = this._input.state.activeTab;
|
||||||
if (runner.hasCompleted && !this.hasResults(runner)) {
|
if (runner.hasCompleted && !this.hasResults(runner)) {
|
||||||
this.hideResults();
|
this.hideResults();
|
||||||
} else {
|
} else {
|
||||||
@@ -261,8 +262,8 @@ export class QueryResultsView extends Disposable {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
if (this.input.state.activeTab) {
|
if (activeTab) {
|
||||||
this._panelView.showTab(this.input.state.activeTab);
|
this._panelView.showTab(activeTab);
|
||||||
} else {
|
} else {
|
||||||
this._panelView.showTab(this.resultsTab.identifier); // our default tab is the results view
|
this._panelView.showTab(this.resultsTab.identifier); // our default tab is the results view
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user