mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -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.activeTab = this.resultsTab.identifier;
|
||||
}));
|
||||
this.runnerDisposables.push(runner.onMessage(e => {
|
||||
if (e.isError) {
|
||||
this._panelView.showTab(this.messagesTab.identifier);
|
||||
}
|
||||
}));
|
||||
this.runnerDisposables.push(runner.onQueryEnd(() => {
|
||||
if (!this.hasResults(runner)) {
|
||||
this.hideResults();
|
||||
|
||||
Reference in New Issue
Block a user