@cspell/cspell-types 8.9.0 → 8.10.0

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.
@@ -235,13 +235,13 @@
235
235
  "DictionaryDefinitionAlternate": {
236
236
  "additionalProperties": false,
237
237
  "deprecated": true,
238
- "deprecationMessage": "Use `DictionaryDefinitionPreferred` instead.",
238
+ "deprecationMessage": "Use {@link DictionaryDefinitionPreferred } instead.",
239
239
  "description": "Only for legacy dictionary definitions.",
240
240
  "markdownDescription": "Only for legacy dictionary definitions.",
241
241
  "properties": {
242
242
  "description": {
243
- "description": "Optional description.",
244
- "markdownDescription": "Optional description.",
243
+ "description": "Optional description of the contents / purpose of the dictionary.",
244
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
245
245
  "type": "string"
246
246
  },
247
247
  "file": {
@@ -269,8 +269,8 @@
269
269
  "type": {
270
270
  "$ref": "#/definitions/DictionaryFileTypes",
271
271
  "default": "S",
272
- "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.",
273
- "markdownDescription": "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."
272
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
273
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
274
274
  },
275
275
  "useCompounds": {
276
276
  "description": "Use Compounds.",
@@ -290,8 +290,8 @@
290
290
  "markdownDescription": "Used to provide extra data related to the dictionary",
291
291
  "properties": {
292
292
  "description": {
293
- "description": "Optional description.",
294
- "markdownDescription": "Optional description.",
293
+ "description": "Optional description of the contents / purpose of the dictionary.",
294
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
295
295
  "type": "string"
296
296
  },
297
297
  "dictionaryInformation": {
@@ -320,8 +320,8 @@
320
320
  "type": {
321
321
  "$ref": "#/definitions/DictionaryFileTypes",
322
322
  "default": "S",
323
- "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.",
324
- "markdownDescription": "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."
323
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
324
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
325
325
  },
326
326
  "useCompounds": {
327
327
  "description": "Use Compounds.",
@@ -346,8 +346,8 @@
346
346
  "type": "boolean"
347
347
  },
348
348
  "description": {
349
- "description": "Optional description.",
350
- "markdownDescription": "Optional description.",
349
+ "description": "Optional description of the contents / purpose of the dictionary.",
350
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
351
351
  "type": "string"
352
352
  },
353
353
  "name": {
@@ -388,8 +388,8 @@
388
388
  "type": {
389
389
  "$ref": "#/definitions/DictionaryFileTypes",
390
390
  "default": "S",
391
- "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.",
392
- "markdownDescription": "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."
391
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
392
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
393
393
  },
394
394
  "useCompounds": {
395
395
  "description": "Use Compounds.",
@@ -414,6 +414,9 @@
414
414
  },
415
415
  {
416
416
  "$ref": "#/definitions/DictionaryDefinitionInlineFlagWords"
417
+ },
418
+ {
419
+ "$ref": "#/definitions/DictionaryDefinitionInlineSuggestWords"
417
420
  }
418
421
  ],
419
422
  "description": "Inline Dictionary Definitions",
@@ -423,8 +426,8 @@
423
426
  "additionalProperties": false,
424
427
  "properties": {
425
428
  "description": {
426
- "description": "Optional description.",
427
- "markdownDescription": "Optional description.",
429
+ "description": "Optional description of the contents / purpose of the dictionary.",
430
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
428
431
  "type": "string"
429
432
  },
430
433
  "flagWords": {
@@ -469,8 +472,8 @@
469
472
  "type": {
470
473
  "$ref": "#/definitions/DictionaryFileTypes",
471
474
  "default": "S",
472
- "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.",
473
- "markdownDescription": "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."
475
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
476
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
474
477
  },
475
478
  "useCompounds": {
476
479
  "description": "Use Compounds.",
@@ -496,8 +499,8 @@
496
499
  "additionalProperties": false,
497
500
  "properties": {
498
501
  "description": {
499
- "description": "Optional description.",
500
- "markdownDescription": "Optional description.",
502
+ "description": "Optional description of the contents / purpose of the dictionary.",
503
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
501
504
  "type": "string"
502
505
  },
503
506
  "flagWords": {
@@ -542,8 +545,8 @@
542
545
  "type": {
543
546
  "$ref": "#/definitions/DictionaryFileTypes",
544
547
  "default": "S",
545
- "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.",
546
- "markdownDescription": "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."
548
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
549
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
547
550
  },
548
551
  "useCompounds": {
549
552
  "description": "Use Compounds.",
@@ -565,12 +568,85 @@
565
568
  ],
566
569
  "type": "object"
567
570
  },
571
+ "DictionaryDefinitionInlineSuggestWords": {
572
+ "additionalProperties": false,
573
+ "properties": {
574
+ "description": {
575
+ "description": "Optional description of the contents / purpose of the dictionary.",
576
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
577
+ "type": "string"
578
+ },
579
+ "flagWords": {
580
+ "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\" ] ```",
581
+ "items": {
582
+ "type": "string"
583
+ },
584
+ "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```",
585
+ "type": "array"
586
+ },
587
+ "ignoreWords": {
588
+ "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`.",
589
+ "items": {
590
+ "type": "string"
591
+ },
592
+ "markdownDescription": "List of words to be ignored. An ignored word will not show up as an error, even if it is\nalso in the `flagWords`.",
593
+ "type": "array"
594
+ },
595
+ "name": {
596
+ "$ref": "#/definitions/DictionaryId",
597
+ "description": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
598
+ "markdownDescription": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
599
+ },
600
+ "noSuggest": {
601
+ "description": "Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.",
602
+ "markdownDescription": "Indicate that suggestions should not come from this dictionary.\nWords in this dictionary are considered correct, but will not be\nused when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in\nthis dictionary, it will be removed from the set of\npossible suggestions.",
603
+ "type": "boolean"
604
+ },
605
+ "repMap": {
606
+ "$ref": "#/definitions/ReplaceMap",
607
+ "description": "Replacement pairs.",
608
+ "markdownDescription": "Replacement pairs."
609
+ },
610
+ "suggestWords": {
611
+ "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`",
612
+ "items": {
613
+ "type": "string"
614
+ },
615
+ "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`",
616
+ "type": "array"
617
+ },
618
+ "type": {
619
+ "$ref": "#/definitions/DictionaryFileTypes",
620
+ "default": "S",
621
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
622
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
623
+ },
624
+ "useCompounds": {
625
+ "description": "Use Compounds.",
626
+ "markdownDescription": "Use Compounds.",
627
+ "type": "boolean"
628
+ },
629
+ "words": {
630
+ "description": "List of words to be considered correct.",
631
+ "items": {
632
+ "type": "string"
633
+ },
634
+ "markdownDescription": "List of words to be considered correct.",
635
+ "type": "array"
636
+ }
637
+ },
638
+ "required": [
639
+ "name",
640
+ "suggestWords"
641
+ ],
642
+ "type": "object"
643
+ },
568
644
  "DictionaryDefinitionInlineWords": {
569
645
  "additionalProperties": false,
570
646
  "properties": {
571
647
  "description": {
572
- "description": "Optional description.",
573
- "markdownDescription": "Optional description.",
648
+ "description": "Optional description of the contents / purpose of the dictionary.",
649
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
574
650
  "type": "string"
575
651
  },
576
652
  "flagWords": {
@@ -615,8 +691,8 @@
615
691
  "type": {
616
692
  "$ref": "#/definitions/DictionaryFileTypes",
617
693
  "default": "S",
618
- "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.",
619
- "markdownDescription": "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."
694
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
695
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
620
696
  },
621
697
  "useCompounds": {
622
698
  "description": "Use Compounds.",
@@ -642,8 +718,8 @@
642
718
  "additionalProperties": false,
643
719
  "properties": {
644
720
  "description": {
645
- "description": "Optional description.",
646
- "markdownDescription": "Optional description.",
721
+ "description": "Optional description of the contents / purpose of the dictionary.",
722
+ "markdownDescription": "Optional description of the contents / purpose of the dictionary.",
647
723
  "type": "string"
648
724
  },
649
725
  "name": {
@@ -669,8 +745,8 @@
669
745
  "type": {
670
746
  "$ref": "#/definitions/DictionaryFileTypes",
671
747
  "default": "S",
672
- "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.",
673
- "markdownDescription": "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."
748
+ "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
749
+ "markdownDescription": "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.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files."
674
750
  },
675
751
  "useCompounds": {
676
752
  "description": "Use Compounds.",
@@ -966,20 +1042,20 @@
966
1042
  ]
967
1043
  },
968
1044
  "LanguageIdMultiple": {
969
- "description": "This can be 'typescript,cpp,json,literal haskell', etc.",
970
- "markdownDescription": "This can be 'typescript,cpp,json,literal haskell', etc.",
1045
+ "description": "A single string with a comma separated list of file types:\n- `typescript,cpp`\n- `json,jsonc,yaml`\n- etc.",
1046
+ "markdownDescription": "A single string with a comma separated list of file types:\n- `typescript,cpp`\n- `json,jsonc,yaml`\n- etc.",
971
1047
  "pattern": "^([-\\w_\\s]+)(,[-\\w_\\s]+)*$",
972
1048
  "type": "string"
973
1049
  },
974
1050
  "LanguageIdMultipleNeg": {
975
- "description": "This can be 'typescript,cpp,json,literal haskell', etc.",
976
- "markdownDescription": "This can be 'typescript,cpp,json,literal haskell', etc.",
977
- "pattern": "^(![-\\w_\\s]+)(,![-\\w_\\s]+)*$",
1051
+ "description": "A Negative File Type used to exclude files of that type.\n- `!typescript` - will exclude typescript files.\n- `!cpp,!json` - will exclude cpp and json files.\n- `!typescript,javascript` - will exclude typescript files and include javascript files.",
1052
+ "markdownDescription": "A Negative File Type used to exclude files of that type.\n- `!typescript` - will exclude typescript files.\n- `!cpp,!json` - will exclude cpp and json files.\n- `!typescript,javascript` - will exclude typescript files and include javascript files.",
1053
+ "pattern": "^(![-\\w_\\s]+)(,!?[-\\w_\\s]+)*$",
978
1054
  "type": "string"
979
1055
  },
980
1056
  "LanguageIdSingle": {
981
- "description": "This can be '*', 'typescript', 'cpp', 'json', etc.",
982
- "markdownDescription": "This can be '*', 'typescript', 'cpp', 'json', etc.",
1057
+ "description": "A file type:\n- `*` - will match ALL file types.\n- `typescript`, `cpp`, `json`, etc.",
1058
+ "markdownDescription": "A file type:\n- `*` - will match ALL file types.\n- `typescript`, `cpp`, `json`, etc.",
983
1059
  "pattern": "^(!?[-\\w_\\s]+)|(\\*)$",
984
1060
  "type": "string"
985
1061
  },
@@ -988,14 +1064,14 @@
988
1064
  "properties": {
989
1065
  "allowCompoundWords": {
990
1066
  "default": false,
991
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
992
- "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1067
+ "description": "True to enable compound word checking.",
1068
+ "markdownDescription": "True to enable compound word checking.",
993
1069
  "type": "boolean"
994
1070
  },
995
1071
  "caseSensitive": {
996
1072
  "default": false,
997
- "description": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
998
- "markdownDescription": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1073
+ "description": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1074
+ "markdownDescription": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
999
1075
  "type": "boolean"
1000
1076
  },
1001
1077
  "description": {
@@ -1058,8 +1134,8 @@
1058
1134
  },
1059
1135
  "languageId": {
1060
1136
  "$ref": "#/definitions/MatchingFileType",
1061
- "description": "The language id. Ex: \"typescript\", \"html\", or \"php\". \"*\" -- will match all languages.",
1062
- "markdownDescription": "The language id. Ex: \"typescript\", \"html\", or \"php\". \"*\" -- will match all languages."
1137
+ "description": "The language id. Ex: `typescript`, `html`, or `php`. `*` -- will match all languages.",
1138
+ "markdownDescription": "The language id. Ex: `typescript`, `html`, or `php`. `*` -- will match all languages."
1063
1139
  },
1064
1140
  "local": {
1065
1141
  "anyOf": [
@@ -1075,8 +1151,8 @@
1075
1151
  ],
1076
1152
  "deprecated": true,
1077
1153
  "deprecationMessage": "Use `locale` instead.",
1078
- "description": "Deprecated - The locale filter, matches against the language. This can be a comma separated list. \"*\" will match all locales.",
1079
- "markdownDescription": "Deprecated - The locale filter, matches against the language. This can be a comma separated list. \"*\" will match all locales."
1154
+ "description": "Deprecated - The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales.",
1155
+ "markdownDescription": "Deprecated - The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales."
1080
1156
  },
1081
1157
  "locale": {
1082
1158
  "anyOf": [
@@ -1090,8 +1166,8 @@
1090
1166
  "type": "array"
1091
1167
  }
1092
1168
  ],
1093
- "description": "The locale filter, matches against the language. This can be a comma separated list. \"*\" will match all locales.",
1094
- "markdownDescription": "The locale filter, matches against the language. This can be a comma separated list. \"*\" will match all locales."
1169
+ "description": "The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales.",
1170
+ "markdownDescription": "The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales."
1095
1171
  },
1096
1172
  "name": {
1097
1173
  "description": "Optional name of configuration.",
@@ -1107,11 +1183,11 @@
1107
1183
  "type": "array"
1108
1184
  },
1109
1185
  "patterns": {
1110
- "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\"] } ] ``` Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.",
1186
+ "description": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and {@link 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\"] } ] ```",
1111
1187
  "items": {
1112
1188
  "$ref": "#/definitions/RegExpPatternDefinition"
1113
1189
  },
1114
- "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```\nDefines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
1190
+ "markdownDescription": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and\n {@link 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```",
1115
1191
  "type": "array"
1116
1192
  },
1117
1193
  "suggestWords": {
@@ -1137,8 +1213,8 @@
1137
1213
  "type": "object"
1138
1214
  },
1139
1215
  "LocaleId": {
1140
- "description": "This is a written language locale like: 'en', 'en-GB', 'fr', 'es', 'de', etc.",
1141
- "markdownDescription": "This is a written language locale like: 'en', 'en-GB', 'fr', 'es', 'de', etc.",
1216
+ "description": "This is a written language locale like: `en`, `en-GB`, `fr`, `es`, `de` or `en,fr` for both English and French",
1217
+ "markdownDescription": "This is a written language locale like: `en`, `en-GB`, `fr`, `es`, `de` or `en,fr` for both English and French",
1142
1218
  "type": "string"
1143
1219
  },
1144
1220
  "MatchingFileType": {
@@ -1159,14 +1235,14 @@
1159
1235
  "properties": {
1160
1236
  "allowCompoundWords": {
1161
1237
  "default": false,
1162
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1163
- "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1238
+ "description": "True to enable compound word checking.",
1239
+ "markdownDescription": "True to enable compound word checking.",
1164
1240
  "type": "boolean"
1165
1241
  },
1166
1242
  "caseSensitive": {
1167
1243
  "default": false,
1168
- "description": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1169
- "markdownDescription": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1244
+ "description": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1245
+ "markdownDescription": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1170
1246
  "type": "boolean"
1171
1247
  },
1172
1248
  "description": {
@@ -1334,11 +1410,11 @@
1334
1410
  "type": "number"
1335
1411
  },
1336
1412
  "patterns": {
1337
- "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\"] } ] ``` Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.",
1413
+ "description": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and {@link 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\"] } ] ```",
1338
1414
  "items": {
1339
1415
  "$ref": "#/definitions/RegExpPatternDefinition"
1340
1416
  },
1341
- "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```\nDefines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
1417
+ "markdownDescription": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and\n {@link 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```",
1342
1418
  "type": "array"
1343
1419
  },
1344
1420
  "pnpFiles": {
@@ -1654,8 +1730,8 @@
1654
1730
  },
1655
1731
  "allowCompoundWords": {
1656
1732
  "default": false,
1657
- "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1658
- "markdownDescription": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.",
1733
+ "description": "True to enable compound word checking.",
1734
+ "markdownDescription": "True to enable compound word checking.",
1659
1735
  "type": "boolean"
1660
1736
  },
1661
1737
  "cache": {
@@ -1665,8 +1741,8 @@
1665
1741
  },
1666
1742
  "caseSensitive": {
1667
1743
  "default": false,
1668
- "description": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1669
- "markdownDescription": "Determines if words must match case and accent rules.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1744
+ "description": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1745
+ "markdownDescription": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
1670
1746
  "type": "boolean"
1671
1747
  },
1672
1748
  "description": {
@@ -1785,11 +1861,11 @@
1785
1861
  "type": "string"
1786
1862
  },
1787
1863
  "ignorePaths": {
1788
- "description": "Glob patterns of files to be ignored.\n\nGlob patterns are relative to the `globRoot` of the configuration file that defines them.",
1864
+ "description": "Glob patterns of files to be ignored.\n\nGlob patterns are relative to the {@link globRoot } of the configuration file that defines them.",
1789
1865
  "items": {
1790
1866
  "$ref": "#/definitions/Glob"
1791
1867
  },
1792
- "markdownDescription": "Glob patterns of files to be ignored.\n\nGlob patterns are relative to the `globRoot` of the configuration file that defines them.",
1868
+ "markdownDescription": "Glob patterns of files to be ignored.\n\nGlob patterns are relative to the {@link globRoot } of the configuration file that defines them.",
1793
1869
  "type": "array"
1794
1870
  },
1795
1871
  "ignoreRegExpList": {
@@ -1894,19 +1970,19 @@
1894
1970
  "type": "number"
1895
1971
  },
1896
1972
  "overrides": {
1897
- "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\" } ] ```",
1973
+ "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\" } ] ```",
1898
1974
  "items": {
1899
1975
  "$ref": "#/definitions/OverrideSettings"
1900
1976
  },
1901
- "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```",
1977
+ "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```",
1902
1978
  "type": "array"
1903
1979
  },
1904
1980
  "patterns": {
1905
- "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\"] } ] ``` Defines a list of patterns that can be used with the `ignoreRegExpList` and `includeRegExpList` options.",
1981
+ "description": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and {@link 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\"] } ] ```",
1906
1982
  "items": {
1907
1983
  "$ref": "#/definitions/RegExpPatternDefinition"
1908
1984
  },
1909
- "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```\nDefines a list of patterns that can be used with the `ignoreRegExpList` and\n`includeRegExpList` options.",
1985
+ "markdownDescription": "Defines a list of patterns that can be used with the {@link ignoreRegExpList } and\n {@link 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```",
1910
1986
  "type": "array"
1911
1987
  },
1912
1988
  "pnpFiles": {
@@ -79,7 +79,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
79
79
  /**
80
80
  * Glob patterns of files to be ignored.
81
81
  *
82
- * Glob patterns are relative to the `globRoot` of the configuration file that defines them.
82
+ * Glob patterns are relative to the {@link globRoot} of the configuration file that defines them.
83
83
  */
84
84
  ignorePaths?: Glob[];
85
85
  /**
@@ -406,7 +406,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
406
406
  */
407
407
  enabled?: boolean;
408
408
  /**
409
- * True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
409
+ * True to enable compound word checking.
410
410
  *
411
411
  * @default false
412
412
  */
@@ -414,6 +414,8 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
414
414
  /**
415
415
  * Determines if words must match case and accent rules.
416
416
  *
417
+ * See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
418
+ *
417
419
  * - `false` - Case is ignored and accents can be missing on the entire word.
418
420
  * Incorrect accents or partially missing accents will be marked as incorrect.
419
421
  * - `true` - Case and accents are enforced.
@@ -493,8 +495,8 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
493
495
  */
494
496
  includeRegExpList?: RegExpPatternList;
495
497
  /**
496
- * Defines a list of patterns that can be used with the `ignoreRegExpList` and
497
- * `includeRegExpList` options.
498
+ * Defines a list of patterns that can be used with the {@link ignoreRegExpList} and
499
+ * {@link includeRegExpList} options.
498
500
  *
499
501
  * For example:
500
502
  *
@@ -516,8 +518,6 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
516
518
  * }
517
519
  * ]
518
520
  * ```
519
- * Defines a list of patterns that can be used with the `ignoreRegExpList` and
520
- * `includeRegExpList` options.
521
521
  */
522
522
  patterns?: RegExpPatternDefinition[];
523
523
  }
@@ -526,16 +526,16 @@ export interface LanguageSetting extends LanguageSettingFilterFields, BaseSettin
526
526
  export interface LanguageSettingFilterFields extends LanguageSettingFilterFieldsPreferred, LanguageSettingFilterFieldsDeprecated {
527
527
  }
528
528
  export interface LanguageSettingFilterFieldsPreferred {
529
- /** The language id. Ex: "typescript", "html", or "php". "*" -- will match all languages. */
529
+ /** The language id. Ex: `typescript`, `html`, or `php`. `*` -- will match all languages. */
530
530
  languageId: MatchingFileType;
531
- /** The locale filter, matches against the language. This can be a comma separated list. "*" will match all locales. */
531
+ /** The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales. */
532
532
  locale?: LocaleId | LocaleId[];
533
533
  }
534
534
  export interface LanguageSettingFilterFieldsDeprecated {
535
- /** The language id. Ex: "typescript", "html", or "php". "*" -- will match all languages. */
535
+ /** The language id. Ex: `typescript`, `html`, or `php`. `*` -- will match all languages. */
536
536
  languageId: MatchingFileType;
537
537
  /**
538
- * Deprecated - The locale filter, matches against the language. This can be a comma separated list. "*" will match all locales.
538
+ * Deprecated - The locale filter, matches against the language. This can be a comma separated list. `*` will match all locales.
539
539
  * @deprecated true
540
540
  * @deprecationMessage Use `locale` instead.
541
541
  */
@@ -551,7 +551,7 @@ export type PatternId = string;
551
551
  export type PatternRef = Pattern | PatternId | PredefinedPatterns;
552
552
  /** A list of pattern names or regular expressions. */
553
553
  export type RegExpPatternList = PatternRef[];
554
- /** This is a written language locale like: 'en', 'en-GB', 'fr', 'es', 'de', etc. */
554
+ /** This is a written language locale like: `en`, `en-GB`, `fr`, `es`, `de` or `en,fr` for both English and French */
555
555
  export type LocaleId = string;
556
556
  /**
557
557
  * Configuration File Version.
@@ -591,18 +591,26 @@ export interface GlobDef {
591
591
  source?: string;
592
592
  }
593
593
  /**
594
- * This can be '*', 'typescript', 'cpp', 'json', etc.
594
+ * A file type:
595
+ * - `*` - will match ALL file types.
596
+ * - `typescript`, `cpp`, `json`, etc.
595
597
  * @pattern ^(!?[-\w_\s]+)|(\*)$
596
598
  */
597
599
  export type LanguageIdSingle = string;
598
600
  /**
599
- * This can be 'typescript,cpp,json,literal haskell', etc.
601
+ * A single string with a comma separated list of file types:
602
+ * - `typescript,cpp`
603
+ * - `json,jsonc,yaml`
604
+ * - etc.
600
605
  * @pattern ^([-\w_\s]+)(,[-\w_\s]+)*$
601
606
  */
602
607
  export type LanguageIdMultiple = string;
603
608
  /**
604
- * This can be 'typescript,cpp,json,literal haskell', etc.
605
- * @pattern ^(![-\w_\s]+)(,![-\w_\s]+)*$
609
+ * A Negative File Type used to exclude files of that type.
610
+ * - `!typescript` - will exclude typescript files.
611
+ * - `!cpp,!json` - will exclude cpp and json files.
612
+ * - `!typescript,javascript` - will exclude typescript files and include javascript files.
613
+ * @pattern ^(![-\w_\s]+)(,!?[-\w_\s]+)*$
606
614
  */
607
615
  export type LanguageIdMultipleNeg = string;
608
616
  export type LanguageId = LanguageIdSingle | LanguageIdMultiple | LanguageIdMultipleNeg;
@@ -713,7 +721,7 @@ export interface ExperimentalFileSettings {
713
721
  plugins?: Plugin[];
714
722
  }
715
723
  /**
716
- * Extends CSpellSettings with ExperimentalFileSettings
724
+ * Extends CSpellSettings with {@link ExperimentalFileSettings}
717
725
  * @experimental
718
726
  * @hidden
719
727
  */
@@ -14,7 +14,9 @@ export interface DictionaryDefinitionBase {
14
14
  * - Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.
15
15
  */
16
16
  name: DictionaryId;
17
- /** Optional description. */
17
+ /**
18
+ * Optional description of the contents / purpose of the dictionary.
19
+ */
18
20
  description?: string;
19
21
  /** Replacement pairs. */
20
22
  repMap?: ReplaceMap;
@@ -29,7 +31,7 @@ export interface DictionaryDefinitionBase {
29
31
  * this dictionary, it will be removed from the set of
30
32
  * possible suggestions.
31
33
  */
32
- noSuggest?: boolean;
34
+ noSuggest?: boolean | undefined;
33
35
  /**
34
36
  * Type of file:
35
37
  * - S - single word per line,
@@ -39,9 +41,12 @@ export interface DictionaryDefinitionBase {
39
41
  * Default is S.
40
42
  *
41
43
  * C is the slowest to load due to the need to split each line based upon code splitting rules.
44
+ *
45
+ * Note: this settings does not apply to inline dictionaries or `.trie` files.
46
+ *
42
47
  * @default "S"
43
48
  */
44
- type?: DictionaryFileTypes;
49
+ type?: DictionaryFileTypes | undefined;
45
50
  }
46
51
  export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
47
52
  /** Path to the file. */
@@ -49,7 +54,7 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase
49
54
  /**
50
55
  * Only for legacy dictionary definitions.
51
56
  * @deprecated true
52
- * @deprecationMessage Use `path` instead.
57
+ * @deprecationMessage Use {@link path} instead.
53
58
  * @hidden
54
59
  */
55
60
  file?: undefined;
@@ -72,12 +77,20 @@ interface DictionaryDefinitionInlineBase extends DictionaryDefinitionBase, Inlin
72
77
  */
73
78
  path?: undefined;
74
79
  /**
75
- * Note used
76
- * @deprecated true
77
- * @deprecationMessage Use `path` instead.
80
+ * Not used
78
81
  * @hidden
79
82
  */
80
83
  file?: undefined;
84
+ /**
85
+ * Not used
86
+ * @hidden
87
+ */
88
+ type?: DictionaryDefinitionBase['type'];
89
+ /**
90
+ * Use `ignoreWords` instead.
91
+ * @hidden
92
+ */
93
+ noSuggest?: DictionaryDefinitionBase['noSuggest'];
81
94
  }
82
95
  export interface DictionaryDefinitionInlineWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'words'>> {
83
96
  words: string[];
@@ -88,15 +101,18 @@ export interface DictionaryDefinitionInlineFlagWords extends DictionaryDefinitio
88
101
  export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'ignoreWords'>> {
89
102
  ignoreWords: string[];
90
103
  }
104
+ export interface DictionaryDefinitionInlineSuggestWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'suggestWords'>> {
105
+ suggestWords: string[];
106
+ }
91
107
  /**
92
108
  * Inline Dictionary Definitions
93
109
  * @since 6.23.0
94
110
  */
95
- export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords;
111
+ export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords | DictionaryDefinitionInlineSuggestWords;
96
112
  /**
97
113
  * Only for legacy dictionary definitions.
98
114
  * @deprecated true
99
- * @deprecationMessage Use `DictionaryDefinitionPreferred` instead.
115
+ * @deprecationMessage Use {@link DictionaryDefinitionPreferred} instead.
100
116
  */
101
117
  export interface DictionaryDefinitionAlternate extends DictionaryDefinitionBase {
102
118
  /** @hidden */
@@ -120,7 +136,7 @@ export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
120
136
  /**
121
137
  * File name.
122
138
  * @deprecated true
123
- * @deprecationMessage Use `path` instead.
139
+ * @deprecationMessage Use {@link path} instead.
124
140
  */
125
141
  file: FsDictionaryPath;
126
142
  /**
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defineConfig = void 0;
3
+ exports.defineConfig = defineConfig;
4
4
  function defineConfig(config) {
5
5
  return config;
6
6
  }
7
- exports.defineConfig = defineConfig;
8
7
  //# sourceMappingURL=defineConfig.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "8.9.0",
6
+ "version": "8.10.0",
7
7
  "description": "Types for cspell and cspell-lib",
8
8
  "type": "commonjs",
9
9
  "sideEffects": false,
@@ -86,5 +86,5 @@
86
86
  "engines": {
87
87
  "node": ">=18"
88
88
  },
89
- "gitHead": "33c513cf848a61fb1ebcea1b9c67505a31447411"
89
+ "gitHead": "a5dde6ae7e2ac86ac956220d4b8c39a0e58e1bc6"
90
90
  }