You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to register a language for an output channel #11005
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?
Reacted by Michał Lytek, CJ Bell, Jens Fischer, Jun Han, Yassine MADDOURI, Sean Poulter, xhliu, Justin Lee and Egorlap
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:
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.
Johannes Rieken (@jrieken) I see more and more extension using text/x-code-output mime type and simply breaking each other because of this. For example an output channel highlighting supplied by one extension is breaking highlighting from other extension (even though they are highlighting completely different independent output channels).
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!
Activity
ArtemGovorov commentedon Aug 29, 2016
From the API perspective, it'd be nice if the
function also accepted a
languageId: string, or perhaps an instance ofDocumentSelector, but this may be an overkill for this specific purpose.jrieken commentedon Aug 29, 2016
Cool, idea. I'd go with
languageIdor anUriwhen creating a channel.ArtemGovorov commentedon Sep 20, 2016
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).
ArtemGovorov commentedon Oct 11, 2016
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:
(https://github.com/IBM-Bluemix/vscode-log-output-colorizer/blob/master/package.json#L40)
jrieken commentedon Oct 11, 2016
hm... Isidor Nikolic (@isidorn) can you comment?
isidorn commentedon Oct 11, 2016
I will comment here #13502 since Artem Govorov (@ArtemGovorov) already created that issue
jroesch commentedon Apr 5, 2017
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.
ArtemGovorov commentedon Apr 24, 2017
Jared Roesch (@jroesch) Did you have a chance to look into this one?
Johannes Rieken (@jrieken) I see more and more extension using
text/x-code-outputmime type and simply breaking each other because of this. For example an output channel highlighting supplied by one extension is breaking highlighting from other extension (even though they are highlighting completely different independent output channels).jrieken commentedon Nov 17, 2017
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!
seanpoulter commentedon Nov 17, 2017
Johannes Rieken (@jrieken), would it be considered if I submitted a PR?
xhliu commentedon Nov 25, 2020
Any fix coming? Seems a very useful feature.
freedomhero commentedon Nov 25, 2020
Any update for this feature request?
zhfnjust commentedon Nov 25, 2020
we need this feature