sonarlint-visualstudio icon indicating copy to clipboard operation
sonarlint-visualstudio copied to clipboard

Colourize output in the SonarLint Output Window

Open duncanp-lseg opened this issue 3 years ago • 1 comments

Description

There is a lot of content in the SonarLint Output Window, making it difficult to see important messages such as errors. Adding colourization would make important output such as errors easier to find.

Notes

VSColorOutput64 is a general-purpose extension that colourizes the output window based on regular expressions. It does this using the standard Editor extensibility APIs.

We could do a more limited version targeted just at our Output Window.

duncanp-lseg avatar Sep 07 '22 08:09 duncanp-lseg

Note:: we only want to colourize our output window pane. It looks like we might be able to specify a document / content type when creating the pane - see the IVsOutputWindow3 documentation:

Creates an output window pane with the specified content type and text view roles. For more information about content types and text view roles, see Language Service and Editor Extension Points.

i.e. we should be able specify a custom content type when creating the pane, and then write a classifier etc that targets just that content type so only our output pane would be colourised.

duncanp-lseg avatar Nov 02 '22 17:11 duncanp-lseg

Moved to SLVS-2232