Skip to content

Commit

Permalink
Plumb editor state change through to state object (microsoft#5931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Gagnon authored Jun 11, 2019
1 parent eaa5f50 commit 33a9f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sql/workbench/parts/query/browser/queryEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ export class QueryEditor extends BaseEditor {
if (this.resultsVisible) {
this.splitview.removeView(1, Sizing.Distribute);
this.resultsVisible = false;
if (this.input && this.input.state) {
this.input.state.resultsVisible = false;
}
}
}

Expand All @@ -380,6 +383,9 @@ export class QueryEditor extends BaseEditor {
onDidChange: Event.None
}, initialViewSize);
this.resultsVisible = true;
if (this.input && this.input.state) {
this.input.state.resultsVisible = true;
}
}
}

Expand Down

0 comments on commit 33a9f2e

Please sign in to comment.