Extension API: Different Syntax Highlight Schemes for Output Window #72021
Labels
feature-request
Request for new features or functionality
*out-of-scope
Posted issue is not in scope of VS Code
output
Output channel system issues
Milestone
Currently the Output Pane syntax highlighting can be performed by having an extension register the text/x-code-output mime type ala https://marketplace.visualstudio.com/itemdetails?itemName=IBM.output-colorizer.
The problem is that there can be only one by one extension for all output windows and as soon as one extension does this it will conflict with others that try to do the same thing. There are multiple extensions (e.g. Azure Functions) that support streaming logs along with standard Git/Terraform/etc. output views, and being able to specify log highlighting on a per output window basis would go a long way to ensuring richer log views and more constant use of the Output Window.
Potential Implementations
Now .tmlanguage highlighters can be registered on a per window name basis and different extensions can contribute different syntax highlighters for output windows rather than one "Global" one.
This would ensure broadest compatibility and probably least development effort, but more dynamic output window names may be tricky (perhaps allow wildcards in mime type definition for .tmlanguage)
Both 1 and 2 can be implemented together to cover both explicit and implicit specification types.
The text was updated successfully, but these errors were encountered: