You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add separate theme colors for explorer rendered diagnostics #43179
The new error highlight in the explorer window is great, but for some reason the colours are all black for me. I've tried different themes, but it doesn't make any difference:
Ah - I've figured it out. It's using the colour from 'editorError.foreground' from 'workbench.colorCustomizations'.
I can see the logic in doing this, but I have the foreground colour set to black to hide the squigglies and use the border colour instead to show a double underline, which makes the stand out more.
The theme has different colours for the editor area and the explorer area, so is it sensible to use the same colours? Maybe there should be a separate setting?
Activity
Gruntfuggly commentedon Feb 8, 2018
Ah - I've figured it out. It's using the colour from 'editorError.foreground' from 'workbench.colorCustomizations'.
I can see the logic in doing this, but I have the foreground colour set to black to hide the squigglies and use the border colour instead to show a double underline, which makes the stand out more.
The theme has different colours for the editor area and the explorer area, so is it sensible to use the same colours? Maybe there should be a separate setting?
usernamehw commentedon Feb 8, 2018
It's especially bad when you have transparent editor warnings and errors.
jrieken commentedon Feb 26, 2018
João Moreno (@joaomoreno) didn't you tweak the colors in the last endgame? is this still the same symbolic color?
joaomoreno commentedon Feb 26, 2018
Johannes Rieken (@jrieken) This is what I've done: 6f5520d#diff-f6007616cdb736289ea324f011eec319
jrieken commentedon Feb 27, 2018
Alright
[-]Explorer error highlights are black (1.20)[/-][+]Add separate theme colors for explorer rendered diagnostics[/+]yavrib commentedon Mar 24, 2018
Johannes Rieken (@jrieken), I'd like to take this as my first issue. Can you point me where I can start?
jrieken commentedon Mar 26, 2018
Sure - here is the code that adds the decorations (using the squiggle colors): https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/markers/electron-browser/markersFileDecorations.ts#L53. You can use the
registerColor-function to define new colors, like here: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/view/editorColorRegistry.ts#L36. I'd define two colors, for errors and for warnings.microsoft#43179 Add separate theme colors for explorer rendered diagn…