elm-language-server icon indicating copy to clipboard operation
elm-language-server copied to clipboard

Highlights in diagnostics

Open andys8 opened this issue 4 years ago • 4 comments

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.

andys8 avatar Nov 24 '19 17:11 andys8

After more input from different people I tend to propose a mixed highlighting:

  • [] for bold
  • _ for underlined
  • * for color

andys8 avatar Nov 29 '19 10:11 andys8

https://github.com/microsoft/vscode/issues/54272#issuecomment-560119826

andys8 avatar Dec 03 '19 09:12 andys8

Godsend! I had looked into this a few month ago and found it's impossible right then.

ymtszw avatar Dec 03 '19 09:12 ymtszw

Unfortunatly we still depend on the language server wrapper being extended also

razzeee avatar Dec 03 '19 13:12 razzeee