mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
change message focus only on query end (#5793)
This commit is contained in:
@@ -223,15 +223,13 @@ 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();
|
||||||
}
|
}
|
||||||
|
if (runner.messages.find(v => v.isError)) {
|
||||||
|
this._panelView.showTab(this.messagesTab.identifier);
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (this.input.state.visibleTabs.has(this.chartTab.identifier) && !this._panelView.contains(this.chartTab)) {
|
if (this.input.state.visibleTabs.has(this.chartTab.identifier) && !this._panelView.contains(this.chartTab)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user