mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
focus messages on error (#5791)
This commit is contained in:
committed by
Karl Burtram
parent
364206010b
commit
76ebfe38a1
@@ -223,6 +223,11 @@ export class QueryResultsView extends Disposable {
|
|||||||
this.input.state.visibleTabs = new Set();
|
this.input.state.visibleTabs = new Set();
|
||||||
this.input.state.activeTab = this.resultsTab.identifier;
|
this.input.state.activeTab = this.resultsTab.identifier;
|
||||||
}));
|
}));
|
||||||
|
this.runnerDisposables.push(runner.onMessage(e => {
|
||||||
|
if (e.isError) {
|
||||||
|
this._panelView.showTab(this.messagesTab.identifier);
|
||||||
|
}
|
||||||
|
}));
|
||||||
this.runnerDisposables.push(runner.onQueryEnd(() => {
|
this.runnerDisposables.push(runner.onQueryEnd(() => {
|
||||||
if (!this.hasResults(runner)) {
|
if (!this.hasResults(runner)) {
|
||||||
this.hideResults();
|
this.hideResults();
|
||||||
|
|||||||
Reference in New Issue
Block a user