From 095f35d07eaae649a4a850c62dc475acd6135f6d Mon Sep 17 00:00:00 2001 From: Karl Burtram Date: Fri, 28 Jun 2019 10:26:07 -0700 Subject: [PATCH] Prevent out of bounds splitview error (#6210) --- src/sql/workbench/parts/query/browser/queryEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/query/browser/queryEditor.ts b/src/sql/workbench/parts/query/browser/queryEditor.ts index a08488ea52..8f7d6334ef 100644 --- a/src/sql/workbench/parts/query/browser/queryEditor.ts +++ b/src/sql/workbench/parts/query/browser/queryEditor.ts @@ -313,7 +313,7 @@ export class QueryEditor extends BaseEditor { const editorViewState = this.loadTextEditorViewState(this.input.getResource()); - if (editorViewState && editorViewState.resultsHeight) { + if (editorViewState && editorViewState.resultsHeight && this.splitview.length > 1) { this.splitview.resizeView(1, editorViewState.resultsHeight); } }