-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Allow to register a language for an output channel #11005
Comments
From the API perspective, it'd be nice if the
function also accepted a |
Cool, idea. I'd go with |
BTW, apart from being able to colorize an output channel, here's another scenario that the feature implementation enables - implementing and registering any custom link providers for an output channel (we're using it for test links on the screenshot above). |
In v1.7 mimetypes were removed, so the workaround doesn't work anymore and currently custom output highlighting is broken in our extension, and few other extensions using the same trick, such as: |
hm... @isidorn can you comment? |
I will comment here #13502 since @ArtemGovorov already created that issue |
Is anyone actively working on this issue? I think I understand how to make the change for this, and would be willingly to give it a shot sometime later this week. |
@jroesch Did you have a chance to look into this one? @jrieken I see more and more extension using |
This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding! |
@jrieken, would it be considered if I submitted a PR? |
Any fix coming? Seems a very useful feature. |
Any update for this feature request? |
we need this feature |
I have taken the idea from this extension https://github.com/formulahendry/vscode-code-runner and created a language + grammar to highlight the output of my extension:
It seems to work ok, but because of using the
text/x-code-output
mime type, the languages and its grammar gets applied to all output channels, not just mine. So not only my extension and other extensions using the same trick may clash with other output channels and each other, also some built-in features seem to stop working in all output channels - for example the file absolute paths detection stops creating links for the paths.I'm wondering if it's possible to somehow constraint a language to work only within a specific output channel? If not, would it be possible to add such feature?
The text was updated successfully, but these errors were encountered: