[theming] editor.selectionForeground is not working
See original GitHub issue- VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:57:00.652Z)
- OS Version: Linux x64 4.8.0-59-generic
Steps to Reproduce:
- Add customization for
workbench.colorCustomizations.editor.selectionForeground
- Save settings
Expected result: a text selection should use the configured foreground color Actual result: it doesn’t.
I notice that the tooltip in the settings editor says “Color of the selected text for high contrast”. I’m not sure what that means, my only thought was that it might apply to the “High Contrast” theme I see mentioned in the docs. I tried to switch to that theme, but it doesn’t make any difference whatsoever (seriously, none at all - it’s weird because I thought I did that before and things looked different then - is high contrast broken now?).
In any case, I’d like to see selection foreground color implemented regardless of theme. For presentation purposes, I want a bright selection background color (my preference is bright yellow), and this is generally incompatible with any kind of syntax-highlight colored text.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:34
- Comments:43 (3 by maintainers)
Top GitHub Comments
Bump. Syntax highlighters use many colours, is very hard to set a selection background color that allow an acceptable contrast with the selected text. I can suggest to remove all the token colors for selected text in order to inherit the color from another token, like the
editor.foreground
or something else.@aeschli This issue will be two years old soon and I’m reminded every time I present using VS Code. Can we ever expect something to be done about this? It really doesn’t look like a satisfactory solution would be too complicated…