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?

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

Most upvoted comments

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

What is the typing!?

I was referring to the typescript types.

Aye, bracketPairColorization and matchBrackets both don’t work. Rolling back to 0.31.0 works fine

Same for me!

bracketPairColorization and matchBrackets doesn’t work at all 😦

Also the matchBrackets functionality seems broken.