Skip to content
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

Closed
kaestlyn opened this issue Apr 14, 2016 · 10 comments
Closed

Output Channel not coloring keywords anymore #5274

kaestlyn opened this issue Apr 14, 2016 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@kaestlyn
Copy link

  • VSCode Version: 1.0.0
  • OS Version: Windows 7 SP1

Steps to Reproduce:

  1. Make a simple extension:
let output = vscode.window.createOutputChannel( 'CM' );        
output.appendLine( "warning: nothing" );
output.appendLine( "[warning not colored]" );
  1. Previously, using certain keywords in this fashion would be colored.

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:
image

After:
image

@isidorn isidorn modified the milestones: April 2016, Backlog Apr 15, 2016
@isidorn
Copy link
Contributor

isidorn commented Apr 15, 2016

@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?

@bpasero
Copy link
Member

bpasero commented Apr 15, 2016

@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

@isidorn
Copy link
Contributor

isidorn commented Apr 15, 2016

@bpasero I think it is still properly used since I see the links are nicely computed in the output. I also see it properly registered here

@kaestlyn
Copy link
Author

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 😄

@bpasero
Copy link
Member

bpasero commented Apr 15, 2016

I can reproduce. @aeschli could this be a regression from theme work? The output mode applies tokens like token error-token output Log and these do not get coloured anymore.

@bpasero bpasero modified the milestones: April 2016, Backlog Apr 15, 2016
@bpasero
Copy link
Member

bpasero commented Apr 15, 2016

@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Apr 15, 2016
@aeschli
Copy link
Contributor

aeschli commented Apr 15, 2016

Yes, the error-token rules got removed. Feel free to add it again to token.css

@isidorn isidorn assigned aeschli and unassigned isidorn Apr 18, 2016
@aeschli aeschli added the verified Verification succeeded label Apr 28, 2016
@kaestlyn
Copy link
Author

kaestlyn commented Jul 1, 2016

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?

@bpasero
Copy link
Member

bpasero commented Jul 1, 2016

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.

@kaestlyn
Copy link
Author

kaestlyn commented Jul 1, 2016

Sounds good, I'll let me users know its not possible at the moment, thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants