Prevent out of bounds splitview error (#6210)

This commit is contained in:
Karl Burtram
2019-06-28 10:26:07 -07:00
committed by GitHub
parent 53cd22f142
commit 095f35d07e

View File

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