@cspell/cspell-types 9.0.0 → 9.0.2
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.
- package/cspell.schema.json +104 -0
- package/dist/index.d.mts +45 -2
- package/dist/index.d.ts +45 -2
- package/package.json +2 -2
package/cspell.schema.json
CHANGED
|
@@ -228,6 +228,9 @@
|
|
|
228
228
|
{
|
|
229
229
|
"$ref": "#/definitions/DictionaryDefinitionInline"
|
|
230
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"$ref": "#/definitions/DictionaryDefinitionSimple"
|
|
233
|
+
},
|
|
231
234
|
{
|
|
232
235
|
"$ref": "#/definitions/DictionaryDefinitionAlternate"
|
|
233
236
|
}
|
|
@@ -272,6 +275,12 @@
|
|
|
272
275
|
"description": "Replacement pairs.",
|
|
273
276
|
"markdownDescription": "Replacement pairs."
|
|
274
277
|
},
|
|
278
|
+
"supportNonStrictSearches": {
|
|
279
|
+
"default": true,
|
|
280
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
281
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
282
|
+
"type": "boolean"
|
|
283
|
+
},
|
|
275
284
|
"type": {
|
|
276
285
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
277
286
|
"default": "S",
|
|
@@ -328,6 +337,12 @@
|
|
|
328
337
|
"description": "Replacement pairs.",
|
|
329
338
|
"markdownDescription": "Replacement pairs."
|
|
330
339
|
},
|
|
340
|
+
"supportNonStrictSearches": {
|
|
341
|
+
"default": true,
|
|
342
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
343
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
344
|
+
"type": "boolean"
|
|
345
|
+
},
|
|
331
346
|
"type": {
|
|
332
347
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
333
348
|
"default": "S",
|
|
@@ -401,6 +416,12 @@
|
|
|
401
416
|
"description": "Defines the scope for when words will be added to the dictionary.\n\nScope values: `user`, `workspace`, `folder`.",
|
|
402
417
|
"markdownDescription": "Defines the scope for when words will be added to the dictionary.\n\nScope values: `user`, `workspace`, `folder`."
|
|
403
418
|
},
|
|
419
|
+
"supportNonStrictSearches": {
|
|
420
|
+
"default": true,
|
|
421
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
422
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
423
|
+
"type": "boolean"
|
|
424
|
+
},
|
|
404
425
|
"type": {
|
|
405
426
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
406
427
|
"default": "S",
|
|
@@ -490,6 +511,12 @@
|
|
|
490
511
|
"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`",
|
|
491
512
|
"type": "array"
|
|
492
513
|
},
|
|
514
|
+
"supportNonStrictSearches": {
|
|
515
|
+
"default": true,
|
|
516
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
517
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
518
|
+
"type": "boolean"
|
|
519
|
+
},
|
|
493
520
|
"type": {
|
|
494
521
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
495
522
|
"default": "S",
|
|
@@ -568,6 +595,12 @@
|
|
|
568
595
|
"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`",
|
|
569
596
|
"type": "array"
|
|
570
597
|
},
|
|
598
|
+
"supportNonStrictSearches": {
|
|
599
|
+
"default": true,
|
|
600
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
601
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
602
|
+
"type": "boolean"
|
|
603
|
+
},
|
|
571
604
|
"type": {
|
|
572
605
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
573
606
|
"default": "S",
|
|
@@ -646,6 +679,12 @@
|
|
|
646
679
|
"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`",
|
|
647
680
|
"type": "array"
|
|
648
681
|
},
|
|
682
|
+
"supportNonStrictSearches": {
|
|
683
|
+
"default": true,
|
|
684
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
685
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
686
|
+
"type": "boolean"
|
|
687
|
+
},
|
|
649
688
|
"type": {
|
|
650
689
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
651
690
|
"default": "S",
|
|
@@ -724,6 +763,12 @@
|
|
|
724
763
|
"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`",
|
|
725
764
|
"type": "array"
|
|
726
765
|
},
|
|
766
|
+
"supportNonStrictSearches": {
|
|
767
|
+
"default": true,
|
|
768
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
769
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
770
|
+
"type": "boolean"
|
|
771
|
+
},
|
|
727
772
|
"type": {
|
|
728
773
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
729
774
|
"default": "S",
|
|
@@ -783,6 +828,12 @@
|
|
|
783
828
|
"description": "Replacement pairs.",
|
|
784
829
|
"markdownDescription": "Replacement pairs."
|
|
785
830
|
},
|
|
831
|
+
"supportNonStrictSearches": {
|
|
832
|
+
"default": true,
|
|
833
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
834
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
835
|
+
"type": "boolean"
|
|
836
|
+
},
|
|
786
837
|
"type": {
|
|
787
838
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
788
839
|
"default": "S",
|
|
@@ -801,6 +852,59 @@
|
|
|
801
852
|
],
|
|
802
853
|
"type": "object"
|
|
803
854
|
},
|
|
855
|
+
"DictionaryDefinitionSimple": {
|
|
856
|
+
"additionalProperties": false,
|
|
857
|
+
"description": "An Empty Dictionary Definition",
|
|
858
|
+
"markdownDescription": "An Empty Dictionary Definition",
|
|
859
|
+
"properties": {
|
|
860
|
+
"description": {
|
|
861
|
+
"description": "Optional description of the contents / purpose of the dictionary.",
|
|
862
|
+
"markdownDescription": "Optional description of the contents / purpose of the dictionary.",
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
"ignoreForbiddenWords": {
|
|
866
|
+
"description": "Some dictionaries may contain forbidden words to prevent compounding from generating words that are not valid in the language. These are often words that are used in other languages or might be generated through compounding. This setting allows flagged words to be ignored when checking the dictionary. The effect is similar to the word not being in the dictionary.",
|
|
867
|
+
"markdownDescription": "Some dictionaries may contain forbidden words to prevent compounding from generating\nwords that are not valid in the language. These are often\nwords that are used in other languages or might be generated through compounding.\nThis setting allows flagged words to be ignored when checking the dictionary.\nThe effect is similar to the word not being in the dictionary.",
|
|
868
|
+
"type": "boolean"
|
|
869
|
+
},
|
|
870
|
+
"name": {
|
|
871
|
+
"$ref": "#/definitions/DictionaryId",
|
|
872
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
873
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
|
|
874
|
+
},
|
|
875
|
+
"noSuggest": {
|
|
876
|
+
"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.",
|
|
877
|
+
"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.",
|
|
878
|
+
"type": "boolean"
|
|
879
|
+
},
|
|
880
|
+
"repMap": {
|
|
881
|
+
"$ref": "#/definitions/ReplaceMap",
|
|
882
|
+
"description": "Replacement pairs.",
|
|
883
|
+
"markdownDescription": "Replacement pairs."
|
|
884
|
+
},
|
|
885
|
+
"supportNonStrictSearches": {
|
|
886
|
+
"default": true,
|
|
887
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
888
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
889
|
+
"type": "boolean"
|
|
890
|
+
},
|
|
891
|
+
"type": {
|
|
892
|
+
"$ref": "#/definitions/DictionaryFileTypes",
|
|
893
|
+
"default": "S",
|
|
894
|
+
"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.",
|
|
895
|
+
"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."
|
|
896
|
+
},
|
|
897
|
+
"useCompounds": {
|
|
898
|
+
"description": "Use Compounds.",
|
|
899
|
+
"markdownDescription": "Use Compounds.",
|
|
900
|
+
"type": "boolean"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
"required": [
|
|
904
|
+
"name"
|
|
905
|
+
],
|
|
906
|
+
"type": "object"
|
|
907
|
+
},
|
|
804
908
|
"DictionaryFileTypes": {
|
|
805
909
|
"enum": [
|
|
806
910
|
"S",
|
package/dist/index.d.mts
CHANGED
|
@@ -529,7 +529,7 @@ interface InlineDictionary {
|
|
|
529
529
|
suggestWords?: string[];
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
532
|
+
type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionSimple | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
533
533
|
type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
534
534
|
interface DictionaryDefinitionBase {
|
|
535
535
|
/**
|
|
@@ -584,6 +584,16 @@ interface DictionaryDefinitionBase {
|
|
|
584
584
|
* @default "S"
|
|
585
585
|
*/
|
|
586
586
|
type?: DictionaryFileTypes | undefined;
|
|
587
|
+
/**
|
|
588
|
+
* Strip case and accents to allow for case insensitive searches and
|
|
589
|
+
* words without accents.
|
|
590
|
+
*
|
|
591
|
+
* Note: this setting only applies to word lists. It has no-impact on trie
|
|
592
|
+
* dictionaries.
|
|
593
|
+
*
|
|
594
|
+
* @default true
|
|
595
|
+
*/
|
|
596
|
+
supportNonStrictSearches?: boolean | undefined;
|
|
587
597
|
}
|
|
588
598
|
interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
|
|
589
599
|
/** Path to the file. */
|
|
@@ -596,6 +606,39 @@ interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
|
|
|
596
606
|
*/
|
|
597
607
|
file?: undefined;
|
|
598
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* An Empty Dictionary Definition
|
|
611
|
+
*/
|
|
612
|
+
interface DictionaryDefinitionSimple extends DictionaryDefinitionBase {
|
|
613
|
+
/**
|
|
614
|
+
* @hidden
|
|
615
|
+
*/
|
|
616
|
+
repMap?: ReplaceMap;
|
|
617
|
+
/**
|
|
618
|
+
* @hidden
|
|
619
|
+
*/
|
|
620
|
+
useCompounds?: boolean;
|
|
621
|
+
/**
|
|
622
|
+
* @hidden
|
|
623
|
+
*/
|
|
624
|
+
noSuggest?: boolean | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* @hidden
|
|
627
|
+
*/
|
|
628
|
+
ignoreForbiddenWords?: boolean | undefined;
|
|
629
|
+
/**
|
|
630
|
+
* @hidden
|
|
631
|
+
*/
|
|
632
|
+
type?: DictionaryFileTypes | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* @hidden
|
|
635
|
+
*/
|
|
636
|
+
path?: string | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* @hidden
|
|
639
|
+
*/
|
|
640
|
+
file?: undefined;
|
|
641
|
+
}
|
|
599
642
|
/**
|
|
600
643
|
* Used to provide extra data related to the dictionary
|
|
601
644
|
*/
|
|
@@ -1620,4 +1663,4 @@ type PartialOrUndefined<T> = {
|
|
|
1620
1663
|
[P in keyof T]?: T[P] | undefined;
|
|
1621
1664
|
};
|
|
1622
1665
|
|
|
1623
|
-
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, Parser, ParserName, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SpellingErrorEmitter, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig };
|
|
1666
|
+
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, Parser, ParserName, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SpellingErrorEmitter, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -529,7 +529,7 @@ interface InlineDictionary {
|
|
|
529
529
|
suggestWords?: string[];
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
532
|
+
type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionSimple | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
533
533
|
type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
534
534
|
interface DictionaryDefinitionBase {
|
|
535
535
|
/**
|
|
@@ -584,6 +584,16 @@ interface DictionaryDefinitionBase {
|
|
|
584
584
|
* @default "S"
|
|
585
585
|
*/
|
|
586
586
|
type?: DictionaryFileTypes | undefined;
|
|
587
|
+
/**
|
|
588
|
+
* Strip case and accents to allow for case insensitive searches and
|
|
589
|
+
* words without accents.
|
|
590
|
+
*
|
|
591
|
+
* Note: this setting only applies to word lists. It has no-impact on trie
|
|
592
|
+
* dictionaries.
|
|
593
|
+
*
|
|
594
|
+
* @default true
|
|
595
|
+
*/
|
|
596
|
+
supportNonStrictSearches?: boolean | undefined;
|
|
587
597
|
}
|
|
588
598
|
interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
|
|
589
599
|
/** Path to the file. */
|
|
@@ -596,6 +606,39 @@ interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
|
|
|
596
606
|
*/
|
|
597
607
|
file?: undefined;
|
|
598
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* An Empty Dictionary Definition
|
|
611
|
+
*/
|
|
612
|
+
interface DictionaryDefinitionSimple extends DictionaryDefinitionBase {
|
|
613
|
+
/**
|
|
614
|
+
* @hidden
|
|
615
|
+
*/
|
|
616
|
+
repMap?: ReplaceMap;
|
|
617
|
+
/**
|
|
618
|
+
* @hidden
|
|
619
|
+
*/
|
|
620
|
+
useCompounds?: boolean;
|
|
621
|
+
/**
|
|
622
|
+
* @hidden
|
|
623
|
+
*/
|
|
624
|
+
noSuggest?: boolean | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* @hidden
|
|
627
|
+
*/
|
|
628
|
+
ignoreForbiddenWords?: boolean | undefined;
|
|
629
|
+
/**
|
|
630
|
+
* @hidden
|
|
631
|
+
*/
|
|
632
|
+
type?: DictionaryFileTypes | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* @hidden
|
|
635
|
+
*/
|
|
636
|
+
path?: string | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* @hidden
|
|
639
|
+
*/
|
|
640
|
+
file?: undefined;
|
|
641
|
+
}
|
|
599
642
|
/**
|
|
600
643
|
* Used to provide extra data related to the dictionary
|
|
601
644
|
*/
|
|
@@ -1620,4 +1663,4 @@ type PartialOrUndefined<T> = {
|
|
|
1620
1663
|
[P in keyof T]?: T[P] | undefined;
|
|
1621
1664
|
};
|
|
1622
1665
|
|
|
1623
|
-
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, Parser, ParserName, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SpellingErrorEmitter, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig };
|
|
1666
|
+
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, Parser, ParserName, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SpellingErrorEmitter, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig };
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.0.
|
|
7
|
+
"version": "9.0.2",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"node": ">=20"
|
|
90
90
|
},
|
|
91
91
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "39dbd9ab9b8943a023d9eda7f65f81e822f939b5"
|
|
93
93
|
}
|