Skip to content

Commit f382c29

Browse files
committed
Fix colour of async markets in stack traces
Fixes #1911.
1 parent 8db7892 commit f382c29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/debug/dart_debug_impl.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,8 @@ export class DartDebugSession extends DebugSession {
17551755

17561756
const colouredText = isFramework ? applyColor(text, grey) : applyColor(text, grey2);
17571757
output.body.output = `${colouredText}\n`;
1758+
} else if (category === "stderr" && output.body.output.trim().startsWith("<async") && output.body.output.trim().endsWith(">")) {
1759+
output.body.output = `${applyColor(output.body.output.trimRight(), grey)}\n`;
17581760
}
17591761

17601762
this.sendEvent(output);

0 commit comments

Comments
 (0)