Skip to content

Support coloring a subset of the matched brackets #170497

Closed

Description

This issue changes the behavior when both brackets and colorizedBracketPairs are configured, for example through this configuration:

"[plaintext]": {
    "editor.language.brackets": [
      ["{", "}"],
      ["(", ")"],
      ["[", "]"]
    ],
    "editor.language.colorizedBracketPairs": [
      ["{", "}"],
      ["<", ">"]
    ]
  },

In this case, the four bracket pairs {}, (), [] and <> should be matched.
However, only the pairs {} and <> should get highlighted.

Code_-_OSS_R4wyxSgWhT

In particular, this restores the bracket matching behavior for plain text files before colorization was introduced.

Verification Steps

Configure editor.language.brackets and editor.language.colorizedBracketPairs and verify that the former just matches brackets and the latter colorizes them. Verify they can be configured independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions