Skip to content

Commit

Permalink
fix: show trace timings in infoview (#3985)
Browse files Browse the repository at this point in the history
A regression introduced by #3801
  • Loading branch information
Kha authored Apr 24, 2024
1 parent f9f2782 commit b8a73d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Lean/Widget/InteractiveDiagnostic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ where
| ctx, compose d₁ d₂ => do let d₁ ← go nCtx ctx d₁; let d₂ ← go nCtx ctx d₂; pure $ d₁ ++ d₂
| ctx, group d => Format.group <$> go nCtx ctx d
| ctx, .trace data header children => do
let header := (← go nCtx ctx header).nest 4
let mut header := (← go nCtx ctx header).nest 4
if data.startTime != 0 then
header := f!"[{data.stopTime - data.startTime}] {header}"
let nodes ←
if data.collapsed && !children.isEmpty then
let children := children.map fun child =>
Expand Down

0 comments on commit b8a73d4

Please sign in to comment.