-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output Channel not coloring keywords anymore #5274
Comments
@bpasero I see that we only handle ansi output for repl, have we ever done this for output? How was this working before might you know? |
@isidorn check if output mode is still properly being used: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/output/common/outputMode.ts |
If there is another way to color the output, I'd love to do it that way versus wrapping my lines with [Error ...] and [Warning ..] etc 😄 |
I can reproduce. @aeschli could this be a regression from theme work? The output mode applies tokens like |
More tokens are outlined here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/output/common/outputMode.ts#L32 |
Yes, the error-token rules got removed. Feel free to add it again to token.css |
It looks like this commit earlier this month has removed the ability to color the output described above: 9a57fba#diff-0ae4fd008d20fc694925b1e837ac1cc2 Is there a way to color the output still? Or is this no longer supported? |
Yes, that coloring story was not good at all. We need support for a) ANSI coloring in the output panel and maybe b) a way for an output channel to contribute rules for tokenization. Coming up with some hard coded keywords (info, error, warning) does not solve it for extensions in general. |
Sounds good, I'll let me users know its not possible at the moment, thanks! |
Steps to Reproduce:
I know there are plans in the future to allow more advanced coloring in output channels, but my extension was using this as a workaround to callout important output.
Before:
After:
The text was updated successfully, but these errors were encountered: