Update language config schema with more details about brackets. (#183779)

This commit is contained in:
Alex Ross 2023-05-30 14:11:10 +02:00 committed by GitHub
parent e4c3ea2b5c
commit ef372f4335
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -539,7 +539,7 @@ const schema: IJSONSchema = {
},
brackets: {
default: [['(', ')'], ['[', ']'], ['{', '}']],
description: nls.localize('schema.brackets', 'Defines the bracket symbols that increase or decrease the indentation.'),
markdownDescription: nls.localize('schema.brackets', 'Defines the bracket symbols that increase or decrease the indentation. When bracket pair colorization is enabled and {0} is not defined, this also defines the bracket pairs that are colorized by their nesting level.', '\`colorizedBracketPairs\`'),
type: 'array',
items: {
$ref: '#/definitions/bracketPair'
@ -547,7 +547,7 @@ const schema: IJSONSchema = {
},
colorizedBracketPairs: {
default: [['(', ')'], ['[', ']'], ['{', '}']],
description: nls.localize('schema.colorizedBracketPairs', 'Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled.'),
markdownDescription: nls.localize('schema.colorizedBracketPairs', 'Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled. Any brackets included here that are not included in {0} will be automatically included in {0}.', '\`brackets\`'),
type: 'array',
items: {
$ref: '#/definitions/bracketPair'