diff --git a/extensions/schema-compare/src/schemaCompareMainWindow.ts b/extensions/schema-compare/src/schemaCompareMainWindow.ts index cfa280d2cc..70a8c15036 100644 --- a/extensions/schema-compare/src/schemaCompareMainWindow.ts +++ b/extensions/schema-compare/src/schemaCompareMainWindow.ts @@ -341,13 +341,6 @@ export class SchemaCompareMainWindow { width: '98%' }); - this.splitView.addItem(this.differencesTable); - this.splitView.addItem(this.diffEditor); - this.splitView.setLayout({ - orientation: 'vertical', - splitViewHeight: 800 - }); - this.flexModel.removeItem(this.loader); this.flexModel.removeItem(this.waitText); this.resetButtons(ResetButtonState.afterCompareComplete); @@ -355,6 +348,13 @@ export class SchemaCompareMainWindow { if (this.comparisonResult.differences.length > 0) { this.flexModel.addItem(this.splitView); + this.splitView.addItem(this.differencesTable); + this.splitView.addItem(this.diffEditor); + this.splitView.setLayout({ + orientation: 'vertical', + splitViewHeight: 800 + }); + // create a map of the differences to row numbers for (let i = 0; i < data.length; ++i) { this.diffEntryRowMap.set(this.createDiffEntryKey(this.comparisonResult.differences[i]), i);