@@ -12,7 +12,7 @@ import type {
1212import { formatDecimal } from "../../common/number" ;
1313import { styled } from "styled-components" ;
1414import { Codicon , ViewTitle , WarningBox } from "../common" ;
15- import { abbreviateRASteps } from "./RAPrettyPrinter" ;
15+ import { abbreviateRANames , abbreviateRASteps } from "./RAPrettyPrinter" ;
1616
1717const enum AbsentReason {
1818 NotSeen = "NotSeen" ,
@@ -364,6 +364,8 @@ export function ComparePerformance(_: Record<string, never>) {
364364 totalDiff += row . diff ;
365365 }
366366
367+ const rowNames = abbreviateRANames ( rows . map ( ( row ) => row . name ) ) ;
368+
367369 return (
368370 < >
369371 < ViewTitle > Performance comparison</ ViewTitle >
@@ -406,7 +408,7 @@ export function ComparePerformance(_: Record<string, never>) {
406408 </ HeaderTR >
407409 </ thead >
408410 </ Table >
409- { rows . map ( ( row ) => (
411+ { rows . map ( ( row , rowIndex ) => (
410412 < Table
411413 key = { row . name }
412414 className = { expandedPredicates . has ( row . name ) ? "expanded" : "" }
@@ -427,7 +429,7 @@ export function ComparePerformance(_: Record<string, never>) {
427429 { renderAbsoluteValue ( row . before ) }
428430 { renderAbsoluteValue ( row . after ) }
429431 { renderDelta ( row . diff ) }
430- < NameCell > { row . name } </ NameCell >
432+ < NameCell > { rowNames [ rowIndex ] } </ NameCell >
431433 </ PredicateTR >
432434 { expandedPredicates . has ( row . name ) && (
433435 < >
0 commit comments