-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
monaco.editor.defineTheme("myTheme", {
base: "vs",
inherit: true,
rules: [],
colors: {
"editor.foreground": "#8B0000",
"editor.selectionForeground": "#008800",
},
});
monaco.editor.setTheme("myTheme");
monaco.editor.create(document.getElementById("container"), {
value: "My to-do list:\n* buy milk\n* buy coffee\n* write awesome code",
language: "text/plain",
fontFamily: "Arial",
fontSize: 20,
});Reproduction Steps
Try to set a style for a selected text.
Actual (Problematic) Behavior
Option editor.selectionForeground are completely ignored by Monaco editor
Expected Behavior
Option editor.selectionForeground must change color of selected text as described in example
Color of the selected text for high contrast.
Additional Context
This behaviour breaks our dark theme:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels