question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] 0.34: bracketPairColorization does not work

See original GitHub issue

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: "function hello() {\n\talert('Hello world!');\n}",
	language: 'javascript',
    bracketPairColorization: { enabled: true },
    ['bracketPairColorization.enabled']: true
});

Reproduction Steps

No response

Actual (Problematic) Behavior

The brackets are not colorized.

Expected Behavior

The brackets are colorized.

Additional Context

It used to work in Monaco 0.32.1

It seems like to colorization is added and then immediately afterwards on the next render removed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
yanny7commented, Aug 11, 2022

Also matchBrackets doesn’t work

1reaction
oldrich-scommented, Aug 15, 2022

I actually use vscode-textmate in monaco in my project. Do you know how to make the bracket coloring work there?

EDIT:

I made it working by the following call:

const grammar = await registry.loadGrammarWithConfiguration(
    'source.ts',
    languageId,
    {
      balancedBracketSelectors: ['*'],
      unbalancedBracketSelectors: [],
    }
  )
Read more comments on GitHub >

github_iconTop Results From Across the Web

monaco-editor-webpack-plugin | Yarn - Package Manager
Useful for adding content-based hashes so that files can be served with long-lived caching headers. default value: '[name].worker.js' . publicPath ( string )...
Read more >
Release notes - Acquia Docs
For a list of known issues you may encounter when using Cloud IDE, see Known issues. ... Change Bracket Pair Colorization is enabled...
Read more >
VS Code, Bracket Pair Colorizer does not work. Do I have to ...
Bracket Pair Colorizer is no longer maintained. It's outdated. Instead, you can colorize your brackets by adding this single line to your ...
Read more >
Source - GitHub
- Fixes [a problem with missing colors](https://github.com/microsoft/monaco-editor/issues/2822) - Fixes [a problem with scheduling background tokenization]( ...
Read more >
vuejs/vetur (Raised $789.00) - Issuehunt
IssueHunt is an issue-based bounty platform for open source projects. Anyone can put a bounty on not only a bug but also on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found