Skip to content

Commit dfd33aa

Browse files
authored
docs: encourage use of simple catalog fileMatch patterns (SchemaStore#4609)
Refs * redhat-developer/yaml-language-server#422 * SchemaStore#4590 * SchemaStore#4608
1 parent bc1c07c commit dfd33aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,13 @@ This would not be accepted because the file detection would have too many false
407407
- Omit `fileMatch` or set it to an empty array (which still allows the user to manually select it)
408408
- Prepend a directory name to the pattern (e.g. `"**/micro/runtime/syntax/*.yaml"`)
409409

410+
### Use Simple `fileMatch` Patterns
411+
412+
Glob implementations vary in their support of various pattern constructs.
413+
Lean towards keeping it simple rather than concise.
414+
415+
For example, `{...}` alternations and some extended glob constructs can be written as multiple "simple" patterns instead.
416+
410417
## Compatible Language Servers and Tools
411418

412419
### [`redhat-developer/yaml-language-server`](https://github.com/redhat-developer/yaml-language-server)

0 commit comments

Comments
 (0)