-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Proposal: Support colored messages in Output window #1801
Comments
Duplicate of #243 |
I'd like to add the following alternative suggestion for coloring the Output panel: In my above suggestion I was assuming that the error messages are getting emitted from the corresponding task runner's task in color. Looking from today's point of view I believe this was a false assumption. Here's why: The error messages sent to the Output panel are supposed to be piped through a so-called Problem Matcher filter. So the corresponding Problem Matcher outputs each part of an error message. Thus, the VS Code implementation responsible for writing a Problem Matcher's output is actually responsible for reasonably coloring the output and knows which part of an error message it is writing. In this case each part of the error message may be colored by the VS Code implementation responsible for reading/writing a Problem Matcher's output, and colors may be defined for each of an error message's part in the VS Code color scheme itself. No need to adapt any color information from the task runner task that's been emitting the error message. Moreover, provided that my proposal of a |
I'd very much like to see terminal-supplied color output supported. It's super-hard to glance and read output right now, and forcing everyone to use a problem matcher to color after the fact seems like an inferior solution. Thanks! |
+1 to @mbleigh's comment on .profile formatted output |
We just released a language extension that brings colorization to the Output panel. Basically, it is a language extension that adds the text/x-code-output mime type, which is used by the Output panel. Get it here: https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer Source here: https://github.com/IBM-Bluemix/vscode-log-output-colorizer Please help contribute! Bugs, feature requests, contributions all welcome. |
Hi, @SetTrend Can you please explain how do you actually make the output channel colorized as you showed in the second picture? Thanks in advance! |
Hi @zjhmale, what I've been providing was just a graphic mockup, created with Corel Photo-PAINT. I didn't actually implement anything. I'm sorry for not providing any better news. |
@SetTrend Thanks for the reply, so basically we can only create some syntax file for the output channel in order to highlight something inside right now 😅 |
For executing tasks this will be solved by executing the task in the terminal instead of the output windows. See is already available in beta (https://code.visualstudio.com/updates/v1_10#_task-support). Since the terminal has full coloring support this will then work out of the box assuming that the program executed as a task emits the right coloring. |
Why doesn't it just use the colors from the terminal in the first place? This seems like such an obvious feature. |
@dbaeumer All I had to do was up my tasks.json to version 2.0.0 and my grunt build started using the terminal window. 👍 |
It's currenty hard to read TypeScript errors in VS Code:
There is a
--pretty
option for TypeScript, but AFAIK it doesn't show any effect when applying it usinggulp-typescript
or other task runner plug-ins.So I'd like to suggest to support colored messages in Output window.
VS Code may be "skinned", or, "themed", which may cause interference with colored Output text. So if you decide to implement colored Output text I suggest to change Output colors like the following if their respective brightness will be getting too close to the Output panel's background color brightness:
This will result in considerably better legible output messages:
(Text color for task runner's time stamp and basic logging information is suggested to be lightgray. Default task output text color is suggested to be white.)
The text was updated successfully, but these errors were encountered: