@cspell/cspell-types 7.3.3 → 7.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -233,7 +233,7 @@
233
233
  "type": {
234
234
  "$ref": "#/definitions/DictionaryFileTypes",
235
235
  "default": "S",
236
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
236
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
237
237
  },
238
238
  "useCompounds": {
239
239
  "description": "Use Compounds.",
@@ -276,7 +276,7 @@
276
276
  "type": {
277
277
  "$ref": "#/definitions/DictionaryFileTypes",
278
278
  "default": "S",
279
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
279
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
280
280
  },
281
281
  "useCompounds": {
282
282
  "description": "Use Compounds.",
@@ -291,7 +291,7 @@
291
291
  },
292
292
  "DictionaryDefinitionCustom": {
293
293
  "additionalProperties": false,
294
- "description": "For Defining Custom dictionaries. They are generally scoped to a `user`, `workspace`, or `folder`. When `addWords` is true, indicates that the spell checker can add words to the file. Note: only plain text files with one word per line are supported at this moment.",
294
+ "description": "For Defining Custom dictionaries. They are generally scoped to a `user`, `workspace`, or `folder`. When `addWords` is true, indicates that the spell checker can add words to the file.\n\nNote: only plain text files with one word per line are supported at this moment.",
295
295
  "properties": {
296
296
  "addWords": {
297
297
  "description": "When `true`, let's the spell checker know that words can be added to this dictionary.",
@@ -329,12 +329,12 @@
329
329
  "type": "array"
330
330
  }
331
331
  ],
332
- "description": "Defines the scope for when words will be added to the dictionary. Scope values: `user`, `workspace`, `folder`."
332
+ "description": "Defines the scope for when words will be added to the dictionary.\n\nScope values: `user`, `workspace`, `folder`."
333
333
  },
334
334
  "type": {
335
335
  "$ref": "#/definitions/DictionaryFileTypes",
336
336
  "default": "S",
337
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
337
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
338
338
  },
339
339
  "useCompounds": {
340
340
  "description": "Use Compounds.",
@@ -370,7 +370,7 @@
370
370
  "type": "string"
371
371
  },
372
372
  "flagWords": {
373
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
373
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
374
374
  "items": {
375
375
  "type": "string"
376
376
  },
@@ -396,16 +396,17 @@
396
396
  "description": "Replacement pairs."
397
397
  },
398
398
  "suggestWords": {
399
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
399
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
400
400
  "items": {
401
401
  "type": "string"
402
402
  },
403
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
403
404
  "type": "array"
404
405
  },
405
406
  "type": {
406
407
  "$ref": "#/definitions/DictionaryFileTypes",
407
408
  "default": "S",
408
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
409
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
409
410
  },
410
411
  "useCompounds": {
411
412
  "description": "Use Compounds.",
@@ -433,10 +434,11 @@
433
434
  "type": "string"
434
435
  },
435
436
  "flagWords": {
436
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
437
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
437
438
  "items": {
438
439
  "type": "string"
439
440
  },
441
+ "markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
440
442
  "type": "array"
441
443
  },
442
444
  "ignoreWords": {
@@ -459,16 +461,17 @@
459
461
  "description": "Replacement pairs."
460
462
  },
461
463
  "suggestWords": {
462
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
464
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
463
465
  "items": {
464
466
  "type": "string"
465
467
  },
468
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
466
469
  "type": "array"
467
470
  },
468
471
  "type": {
469
472
  "$ref": "#/definitions/DictionaryFileTypes",
470
473
  "default": "S",
471
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
474
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
472
475
  },
473
476
  "useCompounds": {
474
477
  "description": "Use Compounds.",
@@ -496,10 +499,11 @@
496
499
  "type": "string"
497
500
  },
498
501
  "flagWords": {
499
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
502
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
500
503
  "items": {
501
504
  "type": "string"
502
505
  },
506
+ "markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
503
507
  "type": "array"
504
508
  },
505
509
  "ignoreWords": {
@@ -522,16 +526,17 @@
522
526
  "description": "Replacement pairs."
523
527
  },
524
528
  "suggestWords": {
525
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
529
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
526
530
  "items": {
527
531
  "type": "string"
528
532
  },
533
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
529
534
  "type": "array"
530
535
  },
531
536
  "type": {
532
537
  "$ref": "#/definitions/DictionaryFileTypes",
533
538
  "default": "S",
534
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
539
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
535
540
  },
536
541
  "useCompounds": {
537
542
  "description": "Use Compounds.",
@@ -577,7 +582,7 @@
577
582
  "type": {
578
583
  "$ref": "#/definitions/DictionaryFileTypes",
579
584
  "default": "S",
580
- "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
585
+ "description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules."
581
586
  },
582
587
  "useCompounds": {
583
588
  "description": "Use Compounds.",
@@ -620,7 +625,8 @@
620
625
  "type": "array"
621
626
  }
622
627
  ],
623
- "description": "The accent characters.\n\nDefault: `\"\\u0300-\\u0341\"`"
628
+ "description": "The accent characters.",
629
+ "markdownDescription": "The accent characters.\n\nDefault: `\"\\u0300-\\u0341\"`"
624
630
  },
625
631
  "adjustments": {
626
632
  "description": "A collection of patterns to test against the suggested words. If the word matches the pattern, then the penalty is applied.",
@@ -757,7 +763,8 @@
757
763
  "additionalProperties": false,
758
764
  "properties": {
759
765
  "aff": {
760
- "description": "Selected Hunspell AFF content. The content must be UTF-8\n\nSections:\n- TRY\n- MAP\n- REP\n- KEY\n- ICONV\n- OCONV\n\nExample: ```hunspell # Comment TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ` MAP aàâäAÀÂÄ MAP eéèêëEÉÈÊË MAP iîïyIÎÏY MAP oôöOÔÖ MAP (IJ)(IJ) ```",
766
+ "description": "Selected Hunspell AFF content.\nThe content must be UTF-8\n\nSections:\n- TRY\n- MAP\n- REP\n- KEY\n- ICONV\n- OCONV",
767
+ "markdownDescription": "Selected Hunspell AFF content.\nThe content must be UTF-8\n\nSections:\n- TRY\n- MAP\n- REP\n- KEY\n- ICONV\n- OCONV\n\nExample:\n```hunspell\n# Comment\nTRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`\nMAP aàâäAÀÂÄ\nMAP eéèêëEÉÈÊË\nMAP iîïyIÎÏY\nMAP oôöOÔÖ\nMAP (IJ)(IJ)\n```",
761
768
  "type": "string"
762
769
  },
763
770
  "costs": {
@@ -855,7 +862,8 @@
855
862
  "properties": {
856
863
  "allowCompoundWords": {
857
864
  "default": false,
858
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
865
+ "description": "True to enable compound word checking. See https://cspell.org/docs/case-sensitive/ for more details.",
866
+ "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
859
867
  "type": "boolean"
860
868
  },
861
869
  "caseSensitive": {
@@ -868,10 +876,11 @@
868
876
  "type": "string"
869
877
  },
870
878
  "dictionaries": {
871
- "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
879
+ "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.",
872
880
  "items": {
873
881
  "$ref": "#/definitions/DictionaryReference"
874
882
  },
883
+ "markdownDescription": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/)\nand [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
875
884
  "type": "array"
876
885
  },
877
886
  "dictionaryDefinitions": {
@@ -887,10 +896,11 @@
887
896
  "type": "boolean"
888
897
  },
889
898
  "flagWords": {
890
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
899
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
891
900
  "items": {
892
901
  "type": "string"
893
902
  },
903
+ "markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
894
904
  "type": "array"
895
905
  },
896
906
  "id": {
@@ -899,7 +909,8 @@
899
909
  },
900
910
  "ignoreRegExpList": {
901
911
  "$ref": "#/definitions/RegExpPatternList",
902
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
912
+ "description": "List of regular expression patterns or pattern names to exclude from spell checking.",
913
+ "markdownDescription": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON\n```json\n\"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"]\n```\n\nYAML\n```yaml\nignoreRegExpList:\n - >-\n /\\b[A-Z]+\\b/g\n```\n\nBy default, several patterns are excluded. See\n[Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
903
914
  },
904
915
  "ignoreWords": {
905
916
  "description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
@@ -910,7 +921,8 @@
910
921
  },
911
922
  "includeRegExpList": {
912
923
  "$ref": "#/definitions/RegExpPatternList",
913
- "description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
924
+ "description": "List of regular expression patterns or defined pattern names to match for spell checking.",
925
+ "markdownDescription": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
914
926
  },
915
927
  "languageId": {
916
928
  "$ref": "#/definitions/MatchingFileType",
@@ -958,17 +970,19 @@
958
970
  "type": "array"
959
971
  },
960
972
  "patterns": {
961
- "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.\n\nFor example:\n\n```javascript \"ignoreRegExpList\": [\"comments\"], \"patterns\": [ { \"name\": \"comment-single-line\", \"pattern\": \"/#.*​/g\" }, { \"name\": \"comment-multi-line\", \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\" }, // You can also combine multiple named patterns into one single named pattern { \"name\": \"comments\", \"pattern\": [\"comment-single-line\", \"comment-multi-line\"] } ] ```",
973
+ "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
962
974
  "items": {
963
975
  "$ref": "#/definitions/RegExpPatternDefinition"
964
976
  },
977
+ "markdownDescription": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.\n\nFor example:\n\n```javascript\n\"ignoreRegExpList\": [\"comments\"],\n\"patterns\": [\n {\n \"name\": \"comment-single-line\",\n \"pattern\": \"/#.*​/g\"\n },\n {\n \"name\": \"comment-multi-line\",\n \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\"\n },\n // You can also combine multiple named patterns into one single named pattern\n {\n \"name\": \"comments\",\n \"pattern\": [\"comment-single-line\", \"comment-multi-line\"]\n }\n]\n```",
965
978
  "type": "array"
966
979
  },
967
980
  "suggestWords": {
968
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
981
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
969
982
  "items": {
970
983
  "type": "string"
971
984
  },
985
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
972
986
  "type": "array"
973
987
  },
974
988
  "words": {
@@ -1006,7 +1020,8 @@
1006
1020
  "properties": {
1007
1021
  "allowCompoundWords": {
1008
1022
  "default": false,
1009
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1023
+ "description": "True to enable compound word checking. See https://cspell.org/docs/case-sensitive/ for more details.",
1024
+ "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1010
1025
  "type": "boolean"
1011
1026
  },
1012
1027
  "caseSensitive": {
@@ -1019,10 +1034,11 @@
1019
1034
  "type": "string"
1020
1035
  },
1021
1036
  "dictionaries": {
1022
- "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
1037
+ "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.",
1023
1038
  "items": {
1024
1039
  "$ref": "#/definitions/DictionaryReference"
1025
1040
  },
1041
+ "markdownDescription": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/)\nand [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
1026
1042
  "type": "array"
1027
1043
  },
1028
1044
  "dictionaryDefinitions": {
@@ -1036,7 +1052,7 @@
1036
1052
  "items": {
1037
1053
  "$ref": "#/definitions/LanguageIdSingle"
1038
1054
  },
1039
- "markdownDescription": "Enable / Disable checking file types (languageIds).\nThese are in additional to the file types specified by `cSpell.enabledLanguageIds`.\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
1055
+ "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
1040
1056
  "scope": "resource",
1041
1057
  "title": "File Types to Check",
1042
1058
  "type": "array",
@@ -1069,10 +1085,11 @@
1069
1085
  "description": "Glob pattern or patterns to match against."
1070
1086
  },
1071
1087
  "flagWords": {
1072
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
1088
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
1073
1089
  "items": {
1074
1090
  "type": "string"
1075
1091
  },
1092
+ "markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
1076
1093
  "type": "array"
1077
1094
  },
1078
1095
  "id": {
@@ -1081,7 +1098,8 @@
1081
1098
  },
1082
1099
  "ignoreRegExpList": {
1083
1100
  "$ref": "#/definitions/RegExpPatternList",
1084
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1101
+ "description": "List of regular expression patterns or pattern names to exclude from spell checking.",
1102
+ "markdownDescription": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON\n```json\n\"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"]\n```\n\nYAML\n```yaml\nignoreRegExpList:\n - >-\n /\\b[A-Z]+\\b/g\n```\n\nBy default, several patterns are excluded. See\n[Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1085
1103
  },
1086
1104
  "ignoreWords": {
1087
1105
  "description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
@@ -1092,7 +1110,8 @@
1092
1110
  },
1093
1111
  "includeRegExpList": {
1094
1112
  "$ref": "#/definitions/RegExpPatternList",
1095
- "description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1113
+ "description": "List of regular expression patterns or defined pattern names to match for spell checking.",
1114
+ "markdownDescription": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1096
1115
  },
1097
1116
  "language": {
1098
1117
  "$ref": "#/definitions/LocaleId",
@@ -1103,10 +1122,11 @@
1103
1122
  "description": "Sets the programming language id to match file type."
1104
1123
  },
1105
1124
  "languageSettings": {
1106
- "description": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
1125
+ "description": "Additional settings for individual languages.",
1107
1126
  "items": {
1108
1127
  "$ref": "#/definitions/LanguageSetting"
1109
1128
  },
1129
+ "markdownDescription": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
1110
1130
  "type": "array"
1111
1131
  },
1112
1132
  "loadDefaultConfiguration": {
@@ -1146,10 +1166,11 @@
1146
1166
  "type": "number"
1147
1167
  },
1148
1168
  "patterns": {
1149
- "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.\n\nFor example:\n\n```javascript \"ignoreRegExpList\": [\"comments\"], \"patterns\": [ { \"name\": \"comment-single-line\", \"pattern\": \"/#.*​/g\" }, { \"name\": \"comment-multi-line\", \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\" }, // You can also combine multiple named patterns into one single named pattern { \"name\": \"comments\", \"pattern\": [\"comment-single-line\", \"comment-multi-line\"] } ] ```",
1169
+ "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
1150
1170
  "items": {
1151
1171
  "$ref": "#/definitions/RegExpPatternDefinition"
1152
1172
  },
1173
+ "markdownDescription": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.\n\nFor example:\n\n```javascript\n\"ignoreRegExpList\": [\"comments\"],\n\"patterns\": [\n {\n \"name\": \"comment-single-line\",\n \"pattern\": \"/#.*​/g\"\n },\n {\n \"name\": \"comment-multi-line\",\n \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\"\n },\n // You can also combine multiple named patterns into one single named pattern\n {\n \"name\": \"comments\",\n \"pattern\": [\"comment-single-line\", \"comment-multi-line\"]\n }\n]\n```",
1153
1174
  "type": "array"
1154
1175
  },
1155
1176
  "pnpFiles": {
@@ -1164,15 +1185,17 @@
1164
1185
  "type": "array"
1165
1186
  },
1166
1187
  "suggestWords": {
1167
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
1188
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
1168
1189
  "items": {
1169
1190
  "type": "string"
1170
1191
  },
1192
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
1171
1193
  "type": "array"
1172
1194
  },
1173
1195
  "suggestionNumChanges": {
1174
1196
  "default": 3,
1175
- "description": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
1197
+ "description": "The maximum number of changes allowed on a word to be considered a suggestions.",
1198
+ "markdownDescription": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
1176
1199
  "type": "number"
1177
1200
  },
1178
1201
  "suggestionsTimeout": {
@@ -1442,7 +1465,8 @@
1442
1465
  },
1443
1466
  "allowCompoundWords": {
1444
1467
  "default": false,
1445
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1468
+ "description": "True to enable compound word checking. See https://cspell.org/docs/case-sensitive/ for more details.",
1469
+ "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1446
1470
  "type": "boolean"
1447
1471
  },
1448
1472
  "cache": {
@@ -1459,10 +1483,11 @@
1459
1483
  "type": "string"
1460
1484
  },
1461
1485
  "dictionaries": {
1462
- "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
1486
+ "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.",
1463
1487
  "items": {
1464
1488
  "$ref": "#/definitions/DictionaryReference"
1465
1489
  },
1490
+ "markdownDescription": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/)\nand [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
1466
1491
  "type": "array"
1467
1492
  },
1468
1493
  "dictionaryDefinitions": {
@@ -1476,7 +1501,7 @@
1476
1501
  "items": {
1477
1502
  "$ref": "#/definitions/LanguageIdSingle"
1478
1503
  },
1479
- "markdownDescription": "Enable / Disable checking file types (languageIds).\nThese are in additional to the file types specified by `cSpell.enabledLanguageIds`.\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
1504
+ "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
1480
1505
  "scope": "resource",
1481
1506
  "title": "File Types to Check",
1482
1507
  "type": "array",
@@ -1513,13 +1538,15 @@
1513
1538
  "items": {
1514
1539
  "$ref": "#/definitions/Glob"
1515
1540
  },
1541
+ "markdownDescription": "Glob patterns of files to be checked.\n\nGlob patterns are relative to the `globRoot` of the configuration file that defines them.",
1516
1542
  "type": "array"
1517
1543
  },
1518
1544
  "flagWords": {
1519
- "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
1545
+ "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.",
1520
1546
  "items": {
1521
1547
  "type": "string"
1522
1548
  },
1549
+ "markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
1523
1550
  "type": "array"
1524
1551
  },
1525
1552
  "gitignoreRoot": {
@@ -1538,7 +1565,8 @@
1538
1565
  },
1539
1566
  "globRoot": {
1540
1567
  "$ref": "#/definitions/FSPathResolvable",
1541
- "description": "The root to use for glob patterns found in this configuration. Default: location of the configuration file. For compatibility reasons, config files with version 0.1, the glob root will default to be `${cwd}`.\n\nUse `globRoot` to define a different location. `globRoot` can be relative to the location of this configuration file. Defining globRoot, does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file."
1568
+ "description": "The root to use for glob patterns found in this configuration.",
1569
+ "markdownDescription": "The root to use for glob patterns found in this configuration.\nDefault: location of the configuration file.\n For compatibility reasons, config files with version 0.1, the glob root will\n default to be `${cwd}`.\n\nUse `globRoot` to define a different location.\n`globRoot` can be relative to the location of this configuration file.\nDefining globRoot, does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file."
1542
1570
  },
1543
1571
  "id": {
1544
1572
  "description": "Optional identifier.",
@@ -1553,7 +1581,8 @@
1553
1581
  },
1554
1582
  "ignoreRegExpList": {
1555
1583
  "$ref": "#/definitions/RegExpPatternList",
1556
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1584
+ "description": "List of regular expression patterns or pattern names to exclude from spell checking.",
1585
+ "markdownDescription": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON\n```json\n\"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"]\n```\n\nYAML\n```yaml\nignoreRegExpList:\n - >-\n /\\b[A-Z]+\\b/g\n```\n\nBy default, several patterns are excluded. See\n[Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1557
1586
  },
1558
1587
  "ignoreWords": {
1559
1588
  "description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
@@ -1574,11 +1603,13 @@
1574
1603
  "type": "array"
1575
1604
  }
1576
1605
  ],
1577
- "description": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details."
1606
+ "description": "Allows this configuration to inherit configuration for one or more other files.\n\nSee https://cspell.org/configuration/imports/ for more details.",
1607
+ "markdownDescription": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details."
1578
1608
  },
1579
1609
  "includeRegExpList": {
1580
1610
  "$ref": "#/definitions/RegExpPatternList",
1581
- "description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1611
+ "description": "List of regular expression patterns or defined pattern names to match for spell checking.",
1612
+ "markdownDescription": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html)."
1582
1613
  },
1583
1614
  "language": {
1584
1615
  "$ref": "#/definitions/LocaleId",
@@ -1590,10 +1621,11 @@
1590
1621
  "description": "Forces the spell checker to assume a give language id. Used mainly as an Override."
1591
1622
  },
1592
1623
  "languageSettings": {
1593
- "description": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
1624
+ "description": "Additional settings for individual languages.",
1594
1625
  "items": {
1595
1626
  "$ref": "#/definitions/LanguageSetting"
1596
1627
  },
1628
+ "markdownDescription": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
1597
1629
  "type": "array"
1598
1630
  },
1599
1631
  "loadDefaultConfiguration": {
@@ -1638,17 +1670,19 @@
1638
1670
  "type": "number"
1639
1671
  },
1640
1672
  "overrides": {
1641
- "description": "Overrides are used to apply settings for specific files in your project.\n\nFor example:\n\n```javascript \"overrides\": [ // Force `*.hrr` and `*.crr` files to be treated as `cpp` files: { \"filename\": \"**​/{*.hrr,*.crr}\", \"languageId\": \"cpp\" }, // Force `*.txt` to use the Dutch dictionary (Dutch dictionary needs to be installed separately): { \"language\": \"nl\", \"filename\": \"**​/dutch/**​/*.txt\" } ] ```",
1673
+ "description": "Overrides are used to apply settings for specific files in your project.",
1642
1674
  "items": {
1643
1675
  "$ref": "#/definitions/OverrideSettings"
1644
1676
  },
1677
+ "markdownDescription": "Overrides are used to apply settings for specific files in your project.\n\nFor example:\n\n```javascript\n\"overrides\": [\n // Force `*.hrr` and `*.crr` files to be treated as `cpp` files:\n {\n \"filename\": \"**​/{*.hrr,*.crr}\",\n \"languageId\": \"cpp\"\n },\n // Force `*.txt` to use the Dutch dictionary (Dutch dictionary needs to be installed separately):\n {\n \"language\": \"nl\",\n \"filename\": \"**​/dutch/**​/*.txt\"\n }\n]\n```",
1645
1678
  "type": "array"
1646
1679
  },
1647
1680
  "patterns": {
1648
- "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.\n\nFor example:\n\n```javascript \"ignoreRegExpList\": [\"comments\"], \"patterns\": [ { \"name\": \"comment-single-line\", \"pattern\": \"/#.*​/g\" }, { \"name\": \"comment-multi-line\", \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\" }, // You can also combine multiple named patterns into one single named pattern { \"name\": \"comments\", \"pattern\": [\"comment-single-line\", \"comment-multi-line\"] } ] ```",
1681
+ "description": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
1649
1682
  "items": {
1650
1683
  "$ref": "#/definitions/RegExpPatternDefinition"
1651
1684
  },
1685
+ "markdownDescription": "Defines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.\n\nFor example:\n\n```javascript\n\"ignoreRegExpList\": [\"comments\"],\n\"patterns\": [\n {\n \"name\": \"comment-single-line\",\n \"pattern\": \"/#.*​/g\"\n },\n {\n \"name\": \"comment-multi-line\",\n \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\"\n },\n // You can also combine multiple named patterns into one single named pattern\n {\n \"name\": \"comments\",\n \"pattern\": [\"comment-single-line\", \"comment-multi-line\"]\n }\n]\n```",
1652
1686
  "type": "array"
1653
1687
  },
1654
1688
  "pnpFiles": {
@@ -1671,10 +1705,11 @@
1671
1705
  "default": [
1672
1706
  "default"
1673
1707
  ],
1674
- "description": "Define which reports to use. `default` - is a special name for the default cli reporter.\n\nExamples:\n- `[\"default\"]` - to use the default reporter\n- `[\"@cspell/cspell-json-reporter\"]` - use the cspell JSON reporter.\n- `[[\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]`\n- `[ \"default\", [\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]` - Use both the default reporter and the cspell-json-reporter.",
1708
+ "description": "Define which reports to use.\n`default` - is a special name for the default cli reporter.\n\nExamples:\n- `[\"default\"]` - to use the default reporter\n- `[\"@cspell/cspell-json-reporter\"]` - use the cspell JSON reporter.\n- `[[\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]`\n- `[ \"default\", [\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]` - Use both the default reporter and the cspell-json-reporter.",
1675
1709
  "items": {
1676
1710
  "$ref": "#/definitions/ReporterSettings"
1677
1711
  },
1712
+ "markdownDescription": "Define which reports to use.\n`default` - is a special name for the default cli reporter.\n\nExamples:\n- `[\"default\"]` - to use the default reporter\n- `[\"@cspell/cspell-json-reporter\"]` - use the cspell JSON reporter.\n- `[[\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]`\n- `[ \"default\", [\"@cspell/cspell-json-reporter\", { \"outFile\": \"out.json\" }]]` - Use both the default reporter and the cspell-json-reporter.",
1678
1713
  "type": "array"
1679
1714
  },
1680
1715
  "showStatus": {
@@ -1688,15 +1723,17 @@
1688
1723
  "type": "number"
1689
1724
  },
1690
1725
  "suggestWords": {
1691
- "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
1726
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.",
1692
1727
  "items": {
1693
1728
  "type": "string"
1694
1729
  },
1730
+ "markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
1695
1731
  "type": "array"
1696
1732
  },
1697
1733
  "suggestionNumChanges": {
1698
1734
  "default": 3,
1699
- "description": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
1735
+ "description": "The maximum number of changes allowed on a word to be considered a suggestions.",
1736
+ "markdownDescription": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
1700
1737
  "type": "number"
1701
1738
  },
1702
1739
  "suggestionsTimeout": {
@@ -40,12 +40,20 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
40
40
  /** Words to add to global dictionary -- should only be in the user config file. */
41
41
  userWords?: string[];
42
42
  /**
43
+ * @markdownDescription
43
44
  * Allows this configuration to inherit configuration for one or more other files.
44
45
  *
45
46
  * See [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details.
47
+ *
48
+ * @description
49
+ * Allows this configuration to inherit configuration for one or more other files.
50
+ *
51
+ * See https://cspell.org/configuration/imports/ for more details.
52
+ *
46
53
  */
47
54
  import?: FsPath | FsPath[];
48
55
  /**
56
+ * @markdownDescription
49
57
  * The root to use for glob patterns found in this configuration.
50
58
  * Default: location of the configuration file.
51
59
  * For compatibility reasons, config files with version 0.1, the glob root will
@@ -59,9 +67,17 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
59
67
  * - `${cwd}` - will be replaced with the current working directory.
60
68
  * - `.` - will be the location of the containing configuration file.
61
69
  *
70
+ * @description
71
+ * The root to use for glob patterns found in this configuration.
62
72
  */
63
73
  globRoot?: FSPathResolvable;
64
74
  /**
75
+ * @markdownDescription
76
+ * Glob patterns of files to be checked.
77
+ *
78
+ * Glob patterns are relative to the `globRoot` of the configuration file that defines them.
79
+ *
80
+ * @description
65
81
  * Glob patterns of files to be checked.
66
82
  *
67
83
  * Glob patterns are relative to the `globRoot` of the configuration file that defines them.
@@ -96,6 +112,17 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
96
112
  */
97
113
  readonly?: boolean;
98
114
  /**
115
+ * @markdownDescription
116
+ * Define which reports to use.
117
+ * `default` - is a special name for the default cli reporter.
118
+ *
119
+ * Examples:
120
+ * - `["default"]` - to use the default reporter
121
+ * - `["@cspell/cspell-json-reporter"]` - use the cspell JSON reporter.
122
+ * - `[["@cspell/cspell-json-reporter", { "outFile": "out.json" }]]`
123
+ * - `[ "default", ["@cspell/cspell-json-reporter", { "outFile": "out.json" }]]` - Use both the default reporter and the cspell-json-reporter.
124
+ *
125
+ * @description
99
126
  * Define which reports to use.
100
127
  * `default` - is a special name for the default cli reporter.
101
128
  *
@@ -138,6 +165,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
138
165
  */
139
166
  export interface ExtendableSettings extends Settings {
140
167
  /**
168
+ * @markdownDescription
141
169
  * Overrides are used to apply settings for specific files in your project.
142
170
  *
143
171
  * For example:
@@ -156,6 +184,8 @@ export interface ExtendableSettings extends Settings {
156
184
  * }
157
185
  * ]
158
186
  * ```
187
+ * @description
188
+ * Overrides are used to apply settings for specific files in your project.
159
189
  */
160
190
  overrides?: OverrideSettings[];
161
191
  }
@@ -180,7 +210,9 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
180
210
  * @uniqueItems true
181
211
  * @markdownDescription
182
212
  * Enable / Disable checking file types (languageIds).
213
+ *
183
214
  * These are in additional to the file types specified by `cSpell.enabledLanguageIds`.
215
+ *
184
216
  * To disable a language, prefix with `!` as in `!json`,
185
217
  *
186
218
  * Example:
@@ -192,9 +224,13 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
192
224
  */
193
225
  enableFiletypes?: LanguageIdSingle[];
194
226
  /**
227
+ * @markdownDescription
195
228
  * Additional settings for individual languages.
196
229
  *
197
230
  * See [Language Settings](https://cspell.org/configuration/language-settings/) for more details.
231
+ *
232
+ * @description
233
+ * Additional settings for individual languages.
198
234
  */
199
235
  languageSettings?: LanguageSetting[];
200
236
  /** Forces the spell checker to assume a give language id. Used mainly as an Override. */
@@ -223,12 +259,16 @@ export interface SuggestionsConfiguration {
223
259
  */
224
260
  suggestionsTimeout?: number;
225
261
  /**
262
+ * @markdownDescription
226
263
  * The maximum number of changes allowed on a word to be considered a suggestions.
227
264
  *
228
265
  * For example, appending an `s` onto `example` -> `examples` is considered 1 change.
229
266
  *
230
267
  * Range: between 1 and 5.
231
268
  *
269
+ * @description
270
+ * The maximum number of changes allowed on a word to be considered a suggestions.
271
+ *
232
272
  * @default 3
233
273
  */
234
274
  suggestionNumChanges?: number;
@@ -367,9 +407,13 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
367
407
  */
368
408
  enabled?: boolean;
369
409
  /**
410
+ * @markdownDescription
370
411
  * True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
371
412
  *
372
- * @default false
413
+ * @description
414
+ * True to enable compound word checking. See https://cspell.org/docs/case-sensitive/ for more details.
415
+
416
+ * @default false
373
417
  */
374
418
  allowCompoundWords?: boolean;
375
419
  /**
@@ -396,6 +440,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
396
440
  */
397
441
  dictionaryDefinitions?: DictionaryDefinition[];
398
442
  /**
443
+ * @markdownDescription
399
444
  * Optional list of dictionaries to use. Each entry should match the name of the dictionary.
400
445
  *
401
446
  * To remove a dictionary from the list, add `!` before the name.
@@ -404,6 +449,9 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
404
449
  *
405
450
  * See the [Dictionaries](https://cspell.org/docs/dictionaries/)
406
451
  * and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.
452
+ *
453
+ * @description
454
+ * Optional list of dictionaries to use. Each entry should match the name of the dictionary.
407
455
  */
408
456
  dictionaries?: DictionaryReference[];
409
457
  /**
@@ -417,6 +465,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
417
465
  */
418
466
  noSuggestDictionaries?: DictionaryReference[];
419
467
  /**
468
+ * @markdownDescription
420
469
  * List of regular expression patterns or pattern names to exclude from spell checking.
421
470
  *
422
471
  * Example: `["href"]` - to exclude html href pattern.
@@ -442,18 +491,24 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
442
491
  *
443
492
  * While you can create your own patterns, you can also leverage several patterns that are
444
493
  * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
494
+ * @description
495
+ * List of regular expression patterns or pattern names to exclude from spell checking.
445
496
  */
446
497
  ignoreRegExpList?: RegExpPatternList;
447
498
  /**
499
+ * @markdownDescription
448
500
  * List of regular expression patterns or defined pattern names to match for spell checking.
449
501
  *
450
502
  * If this property is defined, only text matching the included patterns will be checked.
451
503
  *
452
504
  * While you can create your own patterns, you can also leverage several patterns that are
453
505
  * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
506
+ * @description
507
+ * List of regular expression patterns or defined pattern names to match for spell checking.
454
508
  */
455
509
  includeRegExpList?: RegExpPatternList;
456
510
  /**
511
+ * @markdownDescription
457
512
  * Defines a list of patterns that can be used with the `ignoreRegExpList` and
458
513
  * `includeRegExpList` options.
459
514
  *
@@ -477,6 +532,9 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
477
532
  * }
478
533
  * ]
479
534
  * ```
535
+ * @description
536
+ * Defines a list of patterns that can be used with the `ignoreRegExpList` and
537
+ * `includeRegExpList` options.
480
538
  */
481
539
  patterns?: RegExpPatternDefinition[];
482
540
  }
@@ -32,10 +32,12 @@ export interface DictionaryDefinitionBase {
32
32
  noSuggest?: boolean;
33
33
  /**
34
34
  * Type of file:
35
- * S - single word per line,
36
- * W - each line can contain one or more words separated by space,
37
- * C - each line is treated like code (Camel Case is allowed).
35
+ * - S - single word per line,
36
+ * - W - each line can contain one or more words separated by space,
37
+ * - C - each line is treated like code (Camel Case is allowed).
38
+ *
38
39
  * Default is S.
40
+ *
39
41
  * C is the slowest to load due to the need to split each line based upon code splitting rules.
40
42
  * @default "S"
41
43
  */
@@ -123,10 +125,12 @@ export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
123
125
  file: FsDictionaryPath;
124
126
  /**
125
127
  * Type of file:
126
- * S - single word per line,
127
- * W - each line can contain one or more words separated by space,
128
- * C - each line is treated like code (Camel Case is allowed).
128
+ * - S - single word per line,
129
+ * - W - each line can contain one or more words separated by space,
130
+ * - C - each line is treated like code (Camel Case is allowed).
131
+ *
129
132
  * Default is S.
133
+ *
130
134
  * C is the slowest to load due to the need to split each line based upon code splitting rules.
131
135
  * @default "S"
132
136
  */
@@ -145,6 +149,7 @@ export type CustomDictionaryScope = 'user' | 'workspace' | 'folder';
145
149
  * `user`, `workspace`, or `folder`.
146
150
  * When `addWords` is true, indicates that the spell checker can add words
147
151
  * to the file.
152
+ *
148
153
  * Note: only plain text files with one word per line are supported at this moment.
149
154
  */
150
155
  export interface DictionaryDefinitionCustom extends DictionaryDefinitionPreferred {
@@ -152,6 +157,7 @@ export interface DictionaryDefinitionCustom extends DictionaryDefinitionPreferre
152
157
  path: CustomDictionaryPath;
153
158
  /**
154
159
  * Defines the scope for when words will be added to the dictionary.
160
+ *
155
161
  * Scope values: `user`, `workspace`, `folder`.
156
162
  */
157
163
  scope?: CustomDictionaryScope | CustomDictionaryScope[];
@@ -17,6 +17,8 @@ export interface DictionaryInformation {
17
17
  */
18
18
  alphabet?: CharacterSet | CharacterSetCosts[];
19
19
  /**
20
+ * The accent characters.
21
+ * @markdownDescription
20
22
  * The accent characters.
21
23
  *
22
24
  * Default: `"\u0300-\u0341"`
@@ -52,6 +54,7 @@ export interface DictionaryInformation {
52
54
  }
53
55
  export interface HunspellInformation {
54
56
  /**
57
+ * @markdownDescription
55
58
  * Selected Hunspell AFF content.
56
59
  * The content must be UTF-8
57
60
  *
@@ -73,6 +76,18 @@ export interface HunspellInformation {
73
76
  * MAP oôöOÔÖ
74
77
  * MAP (IJ)(IJ)
75
78
  * ```
79
+ *
80
+ * @description
81
+ * Selected Hunspell AFF content.
82
+ * The content must be UTF-8
83
+ *
84
+ * Sections:
85
+ * - TRY
86
+ * - MAP
87
+ * - REP
88
+ * - KEY
89
+ * - ICONV
90
+ * - OCONV
76
91
  */
77
92
  aff: HunspellAffContent;
78
93
  /** The costs to apply when using the hunspell settings */
@@ -4,6 +4,8 @@ export interface InlineDictionary {
4
4
  */
5
5
  words?: string[];
6
6
  /**
7
+ * List of words to always be considered incorrect. Words found in `flagWords` override `words`.
8
+ * @markdownDescription
7
9
  * List of words to always be considered incorrect. Words found in `flagWords` override `words`.
8
10
  *
9
11
  * Format of `flagWords`
@@ -27,6 +29,11 @@ export interface InlineDictionary {
27
29
  */
28
30
  ignoreWords?: string[];
29
31
  /**
32
+ * A list of suggested replacements for words.
33
+ * Suggested words provide a way to make preferred suggestions on word replacements.
34
+ * To hint at a preferred change, but not to require it.
35
+ *
36
+ * @markdownDescription
30
37
  * A list of suggested replacements for words.
31
38
  * Suggested words provide a way to make preferred suggestions on word replacements.
32
39
  * To hint at a preferred change, but not to require it.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "7.3.3",
6
+ "version": "7.3.4",
7
7
  "description": "Types for cspell and cspell-lib",
8
8
  "type": "commonjs",
9
9
  "main": "./dist/index.js",
@@ -52,13 +52,11 @@
52
52
  "scripts": {
53
53
  "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
54
54
  "build": "pnpm build:tsc && pnpm run build-schema",
55
- "build:tsc": "tsc -b tsconfig.json",
56
- "build-schema": "ts-json-schema-generator --no-top-ref --path src/CSpellSettingsDef.ts --type CSpellSettings --validation-keywords markdownDescription --validation-keywords scope --validation-keywords deprecated --validation-keywords deprecationMessage -o ./cspell.schema.json && shx cp ./cspell.schema.json ../..",
55
+ "build:tsc": "tsc -p tsconfig.json",
56
+ "build-schema": "pnpm build-cspell-schema",
57
57
  "clean-build": "pnpm run clean && pnpm run build",
58
58
  "coverage": "vitest run --coverage",
59
- "test": "pnpm test:unit && pnpm test:schema",
60
- "test:unit": "vitest run",
61
- "test:schema": "ajv -s ./cspell.schema.json -d \"cspell.test.{json,yaml}\" -c ./ajv.config.js",
59
+ "test": "vitest run",
62
60
  "prepare": "echo Skip Building Types"
63
61
  },
64
62
  "repository": {
@@ -86,9 +84,5 @@
86
84
  "engines": {
87
85
  "node": ">=16"
88
86
  },
89
- "devDependencies": {
90
- "ajv-cli": "^5.0.0",
91
- "ts-json-schema-generator": "^1.3.0"
92
- },
93
- "gitHead": "da65ffafaa6a039cedc52d9e029c53ddd273a1fb"
87
+ "gitHead": "7849a4ff2561453653fae9b9067b39252aeb773f"
94
88
  }
package/ajv.config.js DELETED
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- const keywords = ['deprecationMessage', 'markdownDescription', 'scope'];
4
-
5
- function addKeywords(ajv) {
6
- for (const keyword of keywords) {
7
- ajv.addKeyword(keyword);
8
- }
9
- }
10
-
11
- module.exports = addKeywords;