From f046129515c17bc8d979124274a67913961fda86 Mon Sep 17 00:00:00 2001 From: Lewis Sanchez <87730006+lewis-sanchez@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:45:04 -0700 Subject: [PATCH] Adds not equal operator and expands unequal collapsed header rows (#20737) * Adds not equal operator and expands unequal collapsed prop rows * Minor clean up. --- .../browser/executionPlanComparisonPropertiesView.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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);