Skip to content

Commit 1a55cd0

Browse files
committed
improve fileMatch descriptions for exclusion patterns
1 parent 93cbbc5 commit 1a55cd0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/json-language-features/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Provides rich language support for JSON files.",
44
"json.schemas.desc": "Associate schemas to JSON files in the current project",
55
"json.schemas.url.desc": "A URL to a schema or a relative path to a schema in the current directory",
6-
"json.schemas.fileMatch.desc": "An array of file patterns to match against when resolving JSON files to schemas.",
6+
"json.schemas.fileMatch.desc": "An array of file patterns to match against when resolving JSON files to schemas. `*` can be used as a wildcard. Exclusion patterns can also be defined and start with '!'. A file matches when there at least one matching pattern and the last matching pattern is not an exclusion pattern.",
77
"json.schemas.fileMatch.item.desc": "A file pattern that can contain '*' to match against when resolving JSON files to schemas.",
88
"json.schemas.schema.desc": "The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL.",
99
"json.format.enable.desc": "Enable/disable default JSON formatter",

extensions/json-language-features/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The server supports the following settings:
6262
- `format`
6363
- `enable`: Whether the server should register the formatting support. This option is only applicable if the client supports *dynamicRegistration* for *rangeFormatting* and `initializationOptions.provideFormatter` is not defined.
6464
- `schema`: Configures association of file names to schema URL or schemas and/or associations of schema URL to schema content.
65-
- `fileMatch`: an array of file names or paths (separated by `/`). `*` can be used as a wildcard.
65+
- `fileMatch`: an array of file names or paths (separated by `/`). `*` can be used as a wildcard. Exclusion patterns can also be defined and start with '!'. A file matches when there at least one matching pattern and the last matching pattern is not an exclusion pattern.
6666
- `url`: The URL of the schema, optional when also a schema is provided.
6767
- `schema`: The schema content.
6868
- `resultLimit`: The max number foldig ranges and otline symbols to be computed (for performance reasons)

0 commit comments

Comments
 (0)