Open mohamed-cherifi opened 1 month ago
Also experiencing this issue with nested curly braces and parenthesis. Inspected foreground color is correct but not applied. Top level delimiters are correct. Is there a Monaco setting that controls nested delimiters?
I am experiencing this as well. The foreground colour is there and correct, but is not being applied. Other colours are.
I am experiencing this as well. The foreground colour is there and correct, but is not being applied. Other colours are.
I was able to resolve this by setting the bracket matching option when I init my monaco editor. This is the rule I added:
"bracketPairColorization.enabled": false
Once I set this then my brackets matched the foreground color I set. Hope this works for you!
Going to try this, thank you!
Unfortunately didn't work for me.
editor = monaco.editor.create(document.getElementById("editor"), {
value: ["function gotothis() {}"].join("\n"),
language: "javascript",
minimap: {
enabled: false
},
theme: 'max',
bracketPairColorization: {
enabled: false
}
});
Is this how you are initialising it, roughly speaking?
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Playground link
Monaco Editor Playground Code
Reproduction Steps
Set
delimiter.parenthesis
anddelimiter.bracket
to whatever colour you want.Actual (Problematic) Behavior
if you try to set a colour for
delimiter.parenthesis
anddelimiter.bracket
they don't seem to get applied.Expected Behavior
delimiter.parenthesis
anddelimiter.bracket
are set when applied.Additional Context
I am using
@monaco-editor/react
v4.6.0 What's weird is when you inspect the token in the editor theforeground
andbackground
values are correct but theparenthesis
andbracket
colours arent correct.