File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/TestExplorer/TestParsers Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -482,13 +482,18 @@ export class SwiftTestingOutputParser {
482
482
483
483
export class MessageRenderer {
484
484
/**
485
- * Converts a swift-testing `EventMessage` to a colorized symbol and message text .
485
+ * Converts a swift-testing `EventMessage` to a printable string .
486
486
*
487
487
* @param message An event message, typically found on an `EventRecordPayload`.
488
- * @returns A string colorized with ANSI escape codes .
488
+ * @returns A string representing the message .
489
489
*/
490
490
static render ( message : EventMessage ) : string {
491
- return `${ SymbolRenderer . eventMessageSymbol ( message . symbol ) } ${ MessageRenderer . colorize ( message . symbol , message . text ) } ` ;
491
+ return message . text ;
492
+
493
+ // Currently VS Code doesn't support colorizing the output of issues
494
+ // shown inline in the editor. Until this is supported we just return
495
+ // the message text. Once it is supported we can use the following code:
496
+ // return `${SymbolRenderer.eventMessageSymbol(message.symbol)} ${MessageRenderer.colorize(message.symbol, message.text)}`;
492
497
}
493
498
494
499
private static colorize ( symbolType : TestSymbol , message : string ) : string {
You can’t perform that action at this time.
0 commit comments