mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
Reorganized Execution Plan Comparison Properties View (#20673)
* Adds summary view to comparison properties view * Equal rows are collapsed at the bottom of the properties view window * Variable rename * Variable rename * Adds row header for equal properties. * Adds middle column with diff icon to comparison properties table * Resolves hygiene issue * Code review changes * Fixes undefined error bug * Adds styles to less than and greater than codicon's * Changes equivalent properties collapsed header * Removes unnecessary check * Integrates alphabetical and importance sorting to equivalency sorting
This commit is contained in:
@@ -111,6 +111,17 @@ export function textFormatter(row: number | undefined, cell: any | undefined, va
|
||||
valueToDisplay = escape(valueToDisplay.length > 250 ? valueToDisplay.slice(0, 250) + '...' : valueToDisplay);
|
||||
titleValue = valueToDisplay;
|
||||
}
|
||||
else if (value && value.title) {
|
||||
if (value.title) {
|
||||
valueToDisplay = value.title;
|
||||
|
||||
if (value.style) {
|
||||
cellStyle = value.style;
|
||||
}
|
||||
}
|
||||
valueToDisplay = escape(valueToDisplay.length > 250 ? valueToDisplay.slice(0, 250) + '...' : valueToDisplay);
|
||||
titleValue = valueToDisplay;
|
||||
}
|
||||
|
||||
return `<span title="${titleValue}" style="${cellStyle}" class="${cellClasses}">${valueToDisplay}</span>`;
|
||||
}
|
||||
@@ -118,7 +129,7 @@ export function textFormatter(row: number | undefined, cell: any | undefined, va
|
||||
|
||||
export function iconCssFormatter(row: number | undefined, cell: any | undefined, value: any, columnDef: any | undefined, dataContext: any | undefined): string {
|
||||
if (isCssIconCellValue(value)) {
|
||||
return `<div role="image" title="${escape(value.title)}" aria-label="${escape(value.title)}" class="grid-cell-value-container icon codicon slick-icon-cell-content ${value.iconCssClass}"></div>`;
|
||||
return `<div role="image" title="${escape(value.title ?? '')}" aria-label="${escape(value.title ?? '')}" class="grid-cell-value-container icon codicon slick-icon-cell-content ${value.iconCssClass}"></div>`;
|
||||
}
|
||||
return textFormatter(row, cell, value, columnDef, dataContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user