fix: show trace timings in infoview (#3985)

A regression introduced by #3801
This commit is contained in:
Sebastian Ullrich 2024-04-24 17:55:27 +02:00 committed by GitHub
parent a9db0d2e53
commit 605cecdde3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 =>