feat: make linter names clickable in trace messages (#7119)
This PR makes linter names clickable in the `trace.profiler` output.
This commit is contained in:
parent
7557542bc2
commit
4e10e4e02e
1 changed files with 2 additions and 2 deletions
|
|
@ -274,7 +274,7 @@ def runLinters (stx : Syntax) : CommandElabM Unit := do
|
|||
let linters ← lintersRef.get
|
||||
unless linters.isEmpty do
|
||||
for linter in linters do
|
||||
withTraceNode `Elab.lint (fun _ => return m!"running linter: {linter.name}")
|
||||
withTraceNode `Elab.lint (fun _ => return m!"running linter: {.ofConstName linter.name}")
|
||||
(tag := linter.name.toString) do
|
||||
let savedState ← get
|
||||
try
|
||||
|
|
@ -282,7 +282,7 @@ def runLinters (stx : Syntax) : CommandElabM Unit := do
|
|||
catch ex =>
|
||||
match ex with
|
||||
| Exception.error ref msg =>
|
||||
logException (.error ref m!"linter {linter.name} failed: {msg}")
|
||||
logException (.error ref m!"linter {.ofConstName linter.name} failed: {msg}")
|
||||
| Exception.internal _ _ =>
|
||||
logException ex
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue