diff --git a/src/sql/workbench/contrib/executionPlan/browser/executionPlanComparisonPropertiesView.ts b/src/sql/workbench/contrib/executionPlan/browser/executionPlanComparisonPropertiesView.ts index f06731779a..ca42ae0521 100644 --- a/src/sql/workbench/contrib/executionPlan/browser/executionPlanComparisonPropertiesView.ts +++ b/src/sql/workbench/contrib/executionPlan/browser/executionPlanComparisonPropertiesView.ts @@ -265,17 +265,23 @@ export class ExecutionPlanComparisonPropertiesView extends ExecutionPlanProperti const treeGridChildren = row.treeGridChildren; if (treeGridChildren?.length > 0) { - let [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren); + const [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren); if (unequalSubRows.length > 0) { - let currentRow = deepClone(row); + const currentRow = deepClone(row); currentRow.treeGridChildren = unequalSubRows; + currentRow.expanded = true; + + currentRow.icon = { + iconCssClass: executionPlanComparisonPropertiesDifferent, + title: notEqualTitle + }; unequalRows.push(currentRow); } if (equalSubRows.length > 0) { - let currentRow = deepClone(row); + const currentRow = deepClone(row); currentRow.treeGridChildren = equalSubRows; equalRows.push(currentRow);