focus messages on error (#5791)

This commit is contained in:
Anthony Dresser
2019-05-31 11:43:15 -07:00
committed by Karl Burtram
parent 364206010b
commit 76ebfe38a1

View File

@@ -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();