@cspell/cspell-types 10.3.1-alpha.0 → 10.3.1
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/README.md +6 -8
- package/cspell.schema.json +17 -17
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,13 +8,11 @@ This package contains no dependencies to avoid any security issues.
|
|
|
8
8
|
|
|
9
9
|
<!--- @@inject: ../../static/sponsor.md --->
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
If our spell checkers save you time, please consider supporting their development.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[](https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY)
|
|
13
|
+
<p align="left">
|
|
14
|
+
<a href="https://github.com/sponsors/streetsidesoftware" title="GitHub Sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/github-sponsor-dark.png" /><img alt="GitHub Sponsor" src="https://cspell.org/img/sponsor/github-sponsor.png" width="180" /></picture></a> <a href="https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY" title="PayPal"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/paypal-dark.png" /><img alt="PayPal" src="https://cspell.org/img/sponsor/paypal.png" width="180" /></picture></a> <a href="https://opencollective.com/cspell" title="Open Collective"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/open-collective-dark.png" /><img alt="Open Collective" src="https://cspell.org/img/sponsor/open-collective.png" width="180" /></picture></a> <a href="https://streetsidesoftware.com/sponsor/" title="Street Side Software"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/cspell-dark.png" /><img alt="CSpell" src="https://cspell.org/img/sponsor/cspell.png" width="180" /></picture></a>
|
|
15
|
+
</p>
|
|
18
16
|
|
|
19
17
|
<!--- @@inject-end: ../../static/sponsor.md --->
|
|
20
18
|
|
|
@@ -26,7 +24,7 @@ npm i -S @cspell/cspell-types
|
|
|
26
24
|
|
|
27
25
|
## Usage
|
|
28
26
|
|
|
29
|
-
Can be
|
|
27
|
+
Can be used to make writing `cspell.config.js` files easier.
|
|
30
28
|
|
|
31
29
|
```js
|
|
32
30
|
'use strict';
|
|
@@ -61,7 +59,7 @@ module.exports = cspell;
|
|
|
61
59
|
|
|
62
60
|
## API
|
|
63
61
|
|
|
64
|
-
`CSpellSettings`
|
|
62
|
+
`CSpellSettings` (aliased as `CSpellUserSettings`) is the formal definition of the configuration that controls the spell checker.
|
|
65
63
|
|
|
66
64
|
## CSpell for Enterprise
|
|
67
65
|
|
package/cspell.schema.json
CHANGED
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"cacheStrategy": {
|
|
90
90
|
"$ref": "#/definitions/CacheStrategy",
|
|
91
|
-
"default": "
|
|
92
|
-
"description": "Strategy to use for detecting changed files, default:
|
|
93
|
-
"markdownDescription": "Strategy to use for detecting changed files, default:
|
|
91
|
+
"default": "content",
|
|
92
|
+
"description": "Strategy to use for detecting changed files, default: content",
|
|
93
|
+
"markdownDescription": "Strategy to use for detecting changed files, default: content"
|
|
94
94
|
},
|
|
95
95
|
"useCache": {
|
|
96
96
|
"default": false,
|
|
@@ -1417,8 +1417,8 @@
|
|
|
1417
1417
|
"since": "9.1.0"
|
|
1418
1418
|
},
|
|
1419
1419
|
"useIntlWordSegmentation": {
|
|
1420
|
-
"description": "Enables
|
|
1421
|
-
"markdownDescription": "Enables
|
|
1420
|
+
"description": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
1421
|
+
"markdownDescription": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
1422
1422
|
"since": "10.2.0",
|
|
1423
1423
|
"type": "boolean"
|
|
1424
1424
|
},
|
|
@@ -1491,11 +1491,11 @@
|
|
|
1491
1491
|
"type": "array"
|
|
1492
1492
|
},
|
|
1493
1493
|
"enableFiletypes": {
|
|
1494
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in
|
|
1494
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
|
|
1495
1495
|
"items": {
|
|
1496
1496
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1497
1497
|
},
|
|
1498
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in
|
|
1498
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
|
|
1499
1499
|
"scope": "resource",
|
|
1500
1500
|
"title": "Enable File Types",
|
|
1501
1501
|
"type": "array",
|
|
@@ -1727,8 +1727,8 @@
|
|
|
1727
1727
|
"since": "9.1.0"
|
|
1728
1728
|
},
|
|
1729
1729
|
"useIntlWordSegmentation": {
|
|
1730
|
-
"description": "Enables
|
|
1731
|
-
"markdownDescription": "Enables
|
|
1730
|
+
"description": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
1731
|
+
"markdownDescription": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
1732
1732
|
"since": "10.2.0",
|
|
1733
1733
|
"type": "boolean"
|
|
1734
1734
|
},
|
|
@@ -2198,11 +2198,11 @@
|
|
|
2198
2198
|
"type": "array"
|
|
2199
2199
|
},
|
|
2200
2200
|
"enableFiletypes": {
|
|
2201
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in
|
|
2201
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
|
|
2202
2202
|
"items": {
|
|
2203
2203
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
2204
2204
|
},
|
|
2205
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in
|
|
2205
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
|
|
2206
2206
|
"scope": "resource",
|
|
2207
2207
|
"title": "Enable File Types",
|
|
2208
2208
|
"type": "array",
|
|
@@ -2291,8 +2291,8 @@
|
|
|
2291
2291
|
},
|
|
2292
2292
|
"globRoot": {
|
|
2293
2293
|
"$ref": "#/definitions/FSPathResolvable",
|
|
2294
|
-
"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
|
|
2295
|
-
"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
|
|
2294
|
+
"description": "The root to use for glob patterns found in this configuration. Default: location of the configuration file. For compatibility reasons, for 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.",
|
|
2295
|
+
"markdownDescription": "The root to use for glob patterns found in this configuration.\nDefault: location of the configuration file.\n For compatibility reasons, for 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."
|
|
2296
2296
|
},
|
|
2297
2297
|
"id": {
|
|
2298
2298
|
"description": "Optional identifier.",
|
|
@@ -2354,8 +2354,8 @@
|
|
|
2354
2354
|
},
|
|
2355
2355
|
"languageId": {
|
|
2356
2356
|
"$ref": "#/definitions/MatchingFileType",
|
|
2357
|
-
"description": "Forces the spell checker to assume a
|
|
2358
|
-
"markdownDescription": "Forces the spell checker to assume a
|
|
2357
|
+
"description": "Forces the spell checker to assume a given language id. Used mainly as an Override.",
|
|
2358
|
+
"markdownDescription": "Forces the spell checker to assume a given language id. Used mainly as an Override."
|
|
2359
2359
|
},
|
|
2360
2360
|
"languageSettings": {
|
|
2361
2361
|
"description": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
|
|
@@ -2544,8 +2544,8 @@
|
|
|
2544
2544
|
"type": "boolean"
|
|
2545
2545
|
},
|
|
2546
2546
|
"useIntlWordSegmentation": {
|
|
2547
|
-
"description": "Enables
|
|
2548
|
-
"markdownDescription": "Enables
|
|
2547
|
+
"description": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
2548
|
+
"markdownDescription": "Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
2549
2549
|
"since": "10.2.0",
|
|
2550
2550
|
"type": "boolean"
|
|
2551
2551
|
},
|
package/dist/index.d.mts
CHANGED
|
@@ -1229,7 +1229,7 @@ type Serializable = number | string | boolean | null | object;
|
|
|
1229
1229
|
//#region src/WordSegmentation.d.ts
|
|
1230
1230
|
interface WordSegmentationSettings {
|
|
1231
1231
|
/**
|
|
1232
|
-
* Enables
|
|
1232
|
+
* Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
|
|
1233
1233
|
* The locale used for the segmentation is based on the {@link language} setting.
|
|
1234
1234
|
*
|
|
1235
1235
|
* @since 10.2.0
|
|
@@ -1392,12 +1392,12 @@ interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
1392
1392
|
/**
|
|
1393
1393
|
* The root to use for glob patterns found in this configuration.
|
|
1394
1394
|
* Default: location of the configuration file.
|
|
1395
|
-
* For compatibility reasons, config files with version 0.1, the glob root will
|
|
1395
|
+
* For compatibility reasons, for config files with version 0.1, the glob root will
|
|
1396
1396
|
* default to be `${cwd}`.
|
|
1397
1397
|
*
|
|
1398
1398
|
* Use `globRoot` to define a different location.
|
|
1399
1399
|
* `globRoot` can be relative to the location of this configuration file.
|
|
1400
|
-
* Defining globRoot
|
|
1400
|
+
* Defining globRoot does not impact imported configurations.
|
|
1401
1401
|
*
|
|
1402
1402
|
* Special Values:
|
|
1403
1403
|
* - `${cwd}` - will be replaced with the current working directory.
|
|
@@ -1538,8 +1538,8 @@ interface SpellCheckerExtensionSettings {
|
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Enable / Disable checking file types (languageIds).
|
|
1540
1540
|
*
|
|
1541
|
-
* These are in
|
|
1542
|
-
* To disable a language, prefix with `!` as in `!json
|
|
1541
|
+
* These are in addition to the file types specified by {@link Settings.enabledLanguageIds}.
|
|
1542
|
+
* To disable a language, prefix with `!` as in `!json`.
|
|
1543
1543
|
*
|
|
1544
1544
|
*
|
|
1545
1545
|
* **Example: individual file types**
|
|
@@ -1604,7 +1604,7 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
|
|
|
1604
1604
|
*
|
|
1605
1605
|
*/
|
|
1606
1606
|
languageSettings?: LanguageSetting[];
|
|
1607
|
-
/** Forces the spell checker to assume a
|
|
1607
|
+
/** Forces the spell checker to assume a given language id. Used mainly as an Override. */
|
|
1608
1608
|
languageId?: MatchingFileType;
|
|
1609
1609
|
/**
|
|
1610
1610
|
* By default, the bundled dictionary configurations are loaded. Explicitly setting this to `false`
|
|
@@ -1682,8 +1682,8 @@ interface CacheSettings {
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
cacheLocation?: FSPathResolvable;
|
|
1684
1684
|
/**
|
|
1685
|
-
* Strategy to use for detecting changed files, default:
|
|
1686
|
-
* @default '
|
|
1685
|
+
* Strategy to use for detecting changed files, default: content
|
|
1686
|
+
* @default 'content'
|
|
1687
1687
|
*/
|
|
1688
1688
|
cacheStrategy?: CacheStrategy;
|
|
1689
1689
|
/**
|
|
@@ -2173,5 +2173,5 @@ declare function mergeConfig(settings: CSpellSettings[]): CSpellSettings;
|
|
|
2173
2173
|
declare function mergeConfig(...settings: [CSpellSettings, ...CSpellSettings[]]): CSpellSettings;
|
|
2174
2174
|
declare function mergeConfig(...settings: [CSpellSettings[], ...CSpellSettings[]]): CSpellSettings;
|
|
2175
2175
|
//#endregion
|
|
2176
|
-
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, 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 FeaturesSupportedByReporter, 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, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, 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 Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
|
|
2176
|
+
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, 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 FeaturesSupportedByReporter, 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, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, 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 Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type SoftWordBreak, type SoftWordBreakDefinitions, type SoftWordBreakPattern, type SoftWordBreakRegExp, type SoftWordBreakRegExpString, type SoftWordBreakRule, type SoftWordBreaks, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WordSegmentationSettings, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
|
|
2177
2177
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1229,7 +1229,7 @@ type Serializable = number | string | boolean | null | object;
|
|
|
1229
1229
|
//#region src/WordSegmentation.d.ts
|
|
1230
1230
|
interface WordSegmentationSettings {
|
|
1231
1231
|
/**
|
|
1232
|
-
* Enables
|
|
1232
|
+
* Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
|
|
1233
1233
|
* The locale used for the segmentation is based on the {@link language} setting.
|
|
1234
1234
|
*
|
|
1235
1235
|
* @since 10.2.0
|
|
@@ -1392,12 +1392,12 @@ interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
1392
1392
|
/**
|
|
1393
1393
|
* The root to use for glob patterns found in this configuration.
|
|
1394
1394
|
* Default: location of the configuration file.
|
|
1395
|
-
* For compatibility reasons, config files with version 0.1, the glob root will
|
|
1395
|
+
* For compatibility reasons, for config files with version 0.1, the glob root will
|
|
1396
1396
|
* default to be `${cwd}`.
|
|
1397
1397
|
*
|
|
1398
1398
|
* Use `globRoot` to define a different location.
|
|
1399
1399
|
* `globRoot` can be relative to the location of this configuration file.
|
|
1400
|
-
* Defining globRoot
|
|
1400
|
+
* Defining globRoot does not impact imported configurations.
|
|
1401
1401
|
*
|
|
1402
1402
|
* Special Values:
|
|
1403
1403
|
* - `${cwd}` - will be replaced with the current working directory.
|
|
@@ -1538,8 +1538,8 @@ interface SpellCheckerExtensionSettings {
|
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Enable / Disable checking file types (languageIds).
|
|
1540
1540
|
*
|
|
1541
|
-
* These are in
|
|
1542
|
-
* To disable a language, prefix with `!` as in `!json
|
|
1541
|
+
* These are in addition to the file types specified by {@link Settings.enabledLanguageIds}.
|
|
1542
|
+
* To disable a language, prefix with `!` as in `!json`.
|
|
1543
1543
|
*
|
|
1544
1544
|
*
|
|
1545
1545
|
* **Example: individual file types**
|
|
@@ -1604,7 +1604,7 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
|
|
|
1604
1604
|
*
|
|
1605
1605
|
*/
|
|
1606
1606
|
languageSettings?: LanguageSetting[];
|
|
1607
|
-
/** Forces the spell checker to assume a
|
|
1607
|
+
/** Forces the spell checker to assume a given language id. Used mainly as an Override. */
|
|
1608
1608
|
languageId?: MatchingFileType;
|
|
1609
1609
|
/**
|
|
1610
1610
|
* By default, the bundled dictionary configurations are loaded. Explicitly setting this to `false`
|
|
@@ -1682,8 +1682,8 @@ interface CacheSettings {
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
cacheLocation?: FSPathResolvable;
|
|
1684
1684
|
/**
|
|
1685
|
-
* Strategy to use for detecting changed files, default:
|
|
1686
|
-
* @default '
|
|
1685
|
+
* Strategy to use for detecting changed files, default: content
|
|
1686
|
+
* @default 'content'
|
|
1687
1687
|
*/
|
|
1688
1688
|
cacheStrategy?: CacheStrategy;
|
|
1689
1689
|
/**
|
|
@@ -2173,5 +2173,5 @@ declare function mergeConfig(settings: CSpellSettings[]): CSpellSettings;
|
|
|
2173
2173
|
declare function mergeConfig(...settings: [CSpellSettings, ...CSpellSettings[]]): CSpellSettings;
|
|
2174
2174
|
declare function mergeConfig(...settings: [CSpellSettings[], ...CSpellSettings[]]): CSpellSettings;
|
|
2175
2175
|
//#endregion
|
|
2176
|
-
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, 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 FeaturesSupportedByReporter, 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, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, 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 Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
|
|
2176
|
+
export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, 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 FeaturesSupportedByReporter, 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, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, 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 Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type SoftWordBreak, type SoftWordBreakDefinitions, type SoftWordBreakPattern, type SoftWordBreakRegExp, type SoftWordBreakRegExpString, type SoftWordBreakRule, type SoftWordBreaks, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WordSegmentationSettings, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
|
|
2177
2177
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.3.1
|
|
7
|
+
"version": "10.3.1",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"node": ">=22.18.0"
|
|
86
86
|
},
|
|
87
87
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "793953d1c2b4f1cab257389ff6ecb3ae2dd40230"
|
|
89
89
|
}
|