elm-language-server
elm-language-server copied to clipboard
Highlights in diagnostics
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
Escape sequences
(not working)
*
_
[]
No highlights
_
for underline, []
for bold
const prettyPrint = (m: IStyledString) =>
m.underline && m.bold
? `[_${m.string}_]`
: m.underline
? `_${m.string}_`
: m.bold
? `[${m.string}]`
: m.string;
Note
Replacements like this need to be adapted.
After more input from different people I tend to propose a mixed highlighting:
-
[]
for bold -
_
for underlined -
*
for color
https://github.com/microsoft/vscode/issues/54272#issuecomment-560119826
Godsend! I had looked into this a few month ago and found it's impossible right then.
Unfortunatly we still depend on the language server wrapper being extended also