monaco-editor: [Bug] Option `bracketPairColorization` does not work
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 Code
monaco.editor.create(document.getElementById('container'), {
value: '(((()))){{{{}}}}[[[[]]]]',
language: 'csharp',
bracketPairColorization: {
enabled: true
}
});
Actual Behavior
Bracket pair colorization does not work, no matter what language is set.
Expected Behavior
Brackets being colorized
Additional Context
I have tried languages: csharp, css, html, javascript
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 16 (7 by maintainers)
Commits related to this issue
- Make bracket colourisation configurable. Blocked on microsoft/monaco-editor#3013 — committed to compiler-explorer/compiler-explorer by mattgodbolt a year ago
- Make bracket colourisation configurable. (#4863) See microsoft/monaco-editor#3013 for ways this can be improved in future — committed to compiler-explorer/compiler-explorer by mattgodbolt a year ago
Also hit this (cc @jeremy-rifkin ). We see this in all languages, and it’s easy to repro in the Monaco Editor playground as per the original report).
Seen most recently in 0.36.1
I was referring to the typescript types.
Aye, bracketPairColorization and matchBrackets both don’t work. Rolling back to 0.31.0 works fine
Hi @hediet, shouldn’t the bracket pairs be colored differently when
enabledisfalse?https://microsoft.github.io/monaco-editor/playground.html?source=v0.36.1#XQAAAAL9AAAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscoyOBTfVOOo4AuRGzYGy8DBvknaaXft9rWb1w8nFlXgKvv6gQ-8WWRoaJxf4YK1BpWeTgWlwgQ6ptrf92RgJkcqUajbS4XqzFrCLmx5_4QNJ_DBYNOj-yKrNBpQncSILkuwvv_ShU7Ckbk0xmZkfvpI28LzEsC634vuMIi_K1lRocBCleP79lIPgCzn_7CNEA
Same for me!
bracketPairColorization and matchBrackets doesn’t work at all 😦
Also the matchBrackets functionality seems broken.