Skip to content

Highlights in diagnostics #200

@andys8

Description

@andys8

I personally would prefer other highlights than # in diagnostics. So I played around with some replacements. My prefered approach would be escape sequences. I tried it manually and with colorette but it didn't work.

#

current approach
image

Escape sequences

(not working)
image

*

image

_

image

[]

image

No highlights

image

_ for underline, [] for bold

const prettyPrint = (m: IStyledString) =>
  m.underline && m.bold
    ? `[_${m.string}_]`
    : m.underline
    ? `_${m.string}_`
    : m.bold
    ? `[${m.string}]`
    : m.string;

image

Note

Replacements like this need to be adapted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions