@cspell/cspell-types 8.7.0 → 8.8.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/cspell.schema.json
CHANGED
|
@@ -1191,13 +1191,13 @@
|
|
|
1191
1191
|
"type": "array"
|
|
1192
1192
|
},
|
|
1193
1193
|
"enableFiletypes": {
|
|
1194
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1194
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional 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 ```",
|
|
1195
1195
|
"items": {
|
|
1196
1196
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1197
1197
|
},
|
|
1198
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1198
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional 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```",
|
|
1199
1199
|
"scope": "resource",
|
|
1200
|
-
"title": "File Types
|
|
1200
|
+
"title": "Enable File Types",
|
|
1201
1201
|
"type": "array",
|
|
1202
1202
|
"uniqueItems": true
|
|
1203
1203
|
},
|
|
@@ -1207,13 +1207,24 @@
|
|
|
1207
1207
|
"markdownDescription": "Is the spell checker enabled.",
|
|
1208
1208
|
"type": "boolean"
|
|
1209
1209
|
},
|
|
1210
|
+
"enabledFileTypes": {
|
|
1211
|
+
"additionalProperties": {
|
|
1212
|
+
"type": "boolean"
|
|
1213
|
+
},
|
|
1214
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment | | --------- | ------- | ------- | | `*` | `true` | Enable all file types. | | `json` | `false` | Disable checking for json files. |",
|
|
1215
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment |\n| --------- | ------- | ------- |\n| `*` | `true` | Enable all file types. |\n| `json` | `false` | Disable checking for json files. |",
|
|
1216
|
+
"title": "Enabled File Types to Check",
|
|
1217
|
+
"type": "object"
|
|
1218
|
+
},
|
|
1210
1219
|
"enabledLanguageIds": {
|
|
1211
|
-
"description": "
|
|
1220
|
+
"description": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1212
1221
|
"items": {
|
|
1213
1222
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1214
1223
|
},
|
|
1215
|
-
"markdownDescription": "
|
|
1216
|
-
"
|
|
1224
|
+
"markdownDescription": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1225
|
+
"title": "Enabled Language Ids",
|
|
1226
|
+
"type": "array",
|
|
1227
|
+
"uniqueItems": true
|
|
1217
1228
|
},
|
|
1218
1229
|
"filename": {
|
|
1219
1230
|
"anyOf": [
|
|
@@ -1680,13 +1691,13 @@
|
|
|
1680
1691
|
"type": "array"
|
|
1681
1692
|
},
|
|
1682
1693
|
"enableFiletypes": {
|
|
1683
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1694
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional 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 ```",
|
|
1684
1695
|
"items": {
|
|
1685
1696
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1686
1697
|
},
|
|
1687
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1698
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional 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```",
|
|
1688
1699
|
"scope": "resource",
|
|
1689
|
-
"title": "File Types
|
|
1700
|
+
"title": "Enable File Types",
|
|
1690
1701
|
"type": "array",
|
|
1691
1702
|
"uniqueItems": true
|
|
1692
1703
|
},
|
|
@@ -1702,13 +1713,24 @@
|
|
|
1702
1713
|
"markdownDescription": "Is the spell checker enabled.",
|
|
1703
1714
|
"type": "boolean"
|
|
1704
1715
|
},
|
|
1716
|
+
"enabledFileTypes": {
|
|
1717
|
+
"additionalProperties": {
|
|
1718
|
+
"type": "boolean"
|
|
1719
|
+
},
|
|
1720
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment | | --------- | ------- | ------- | | `*` | `true` | Enable all file types. | | `json` | `false` | Disable checking for json files. |",
|
|
1721
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment |\n| --------- | ------- | ------- |\n| `*` | `true` | Enable all file types. |\n| `json` | `false` | Disable checking for json files. |",
|
|
1722
|
+
"title": "Enabled File Types to Check",
|
|
1723
|
+
"type": "object"
|
|
1724
|
+
},
|
|
1705
1725
|
"enabledLanguageIds": {
|
|
1706
|
-
"description": "
|
|
1726
|
+
"description": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1707
1727
|
"items": {
|
|
1708
1728
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1709
1729
|
},
|
|
1710
|
-
"markdownDescription": "
|
|
1711
|
-
"
|
|
1730
|
+
"markdownDescription": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1731
|
+
"title": "Enabled Language Ids",
|
|
1732
|
+
"type": "array",
|
|
1733
|
+
"uniqueItems": true
|
|
1712
1734
|
},
|
|
1713
1735
|
"failFast": {
|
|
1714
1736
|
"default": false,
|
|
@@ -125,7 +125,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
125
125
|
/**
|
|
126
126
|
* Configure CSpell features.
|
|
127
127
|
*
|
|
128
|
-
* @
|
|
128
|
+
* @since 5.16.0
|
|
129
129
|
*/
|
|
130
130
|
features?: Features;
|
|
131
131
|
}
|
|
@@ -160,39 +160,75 @@ export interface ExtendableSettings extends Settings {
|
|
|
160
160
|
*/
|
|
161
161
|
overrides?: OverrideSettings[];
|
|
162
162
|
}
|
|
163
|
-
export interface
|
|
163
|
+
export interface SpellCheckerExtensionSettings {
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* For example:
|
|
169
|
-
*
|
|
170
|
-
* - "en-GB" for British English.
|
|
171
|
-
* - "en,nl" to enable both English and Dutch.
|
|
172
|
-
*
|
|
173
|
-
* @default "en"
|
|
165
|
+
* Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes} to Enable / Disable checking files types.
|
|
166
|
+
* @title Enabled Language Ids
|
|
167
|
+
* @uniqueItems true
|
|
174
168
|
*/
|
|
175
|
-
language?: LocaleId;
|
|
176
|
-
/** languageIds for the files to spell check. */
|
|
177
169
|
enabledLanguageIds?: LanguageIdSingle[];
|
|
178
170
|
/**
|
|
179
171
|
* Enable / Disable checking file types (languageIds).
|
|
180
172
|
*
|
|
181
|
-
* These are in additional to the file types specified by
|
|
182
|
-
*
|
|
173
|
+
* These are in additional to the file types specified by {@link Settings.enabledLanguageIds}.
|
|
183
174
|
* To disable a language, prefix with `!` as in `!json`,
|
|
184
175
|
*
|
|
185
|
-
*
|
|
176
|
+
*
|
|
177
|
+
* **Example: individual file types**
|
|
178
|
+
*
|
|
186
179
|
* ```
|
|
187
180
|
* jsonc // enable checking for jsonc
|
|
188
181
|
* !json // disable checking for json
|
|
189
182
|
* kotlin // enable checking for kotlin
|
|
190
183
|
* ```
|
|
191
|
-
*
|
|
184
|
+
*
|
|
185
|
+
* **Example: enable all file types**
|
|
186
|
+
*
|
|
187
|
+
* ```
|
|
188
|
+
* * // enable checking for all file types
|
|
189
|
+
* !json // except for json
|
|
190
|
+
* ```
|
|
191
|
+
* @title Enable File Types
|
|
192
192
|
* @scope resource
|
|
193
193
|
* @uniqueItems true
|
|
194
194
|
*/
|
|
195
195
|
enableFiletypes?: LanguageIdSingle[];
|
|
196
|
+
/**
|
|
197
|
+
* Enable / Disable checking file types (languageIds).
|
|
198
|
+
*
|
|
199
|
+
* This setting replaces: {@link Settings.enabledLanguageIds} and {@link Settings.enableFiletypes}.
|
|
200
|
+
*
|
|
201
|
+
* A Value of:
|
|
202
|
+
* - `true` - enable checking for the file type
|
|
203
|
+
* - `false` - disable checking for the file type
|
|
204
|
+
*
|
|
205
|
+
* A file type of `*` is a wildcard that enables all file types.
|
|
206
|
+
*
|
|
207
|
+
* **Example: enable all file types**
|
|
208
|
+
*
|
|
209
|
+
* | File Type | Enabled | Comment |
|
|
210
|
+
* | --------- | ------- | ------- |
|
|
211
|
+
* | `*` | `true` | Enable all file types. |
|
|
212
|
+
* | `json` | `false` | Disable checking for json files. |
|
|
213
|
+
*
|
|
214
|
+
* @title Enabled File Types to Check
|
|
215
|
+
* @since 8.8.1
|
|
216
|
+
*/
|
|
217
|
+
enabledFileTypes?: Record<string, boolean>;
|
|
218
|
+
}
|
|
219
|
+
export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, SpellCheckerExtensionSettings {
|
|
220
|
+
/**
|
|
221
|
+
* Current active spelling language. This specifies the language locale to use in choosing the
|
|
222
|
+
* general dictionary.
|
|
223
|
+
*
|
|
224
|
+
* For example:
|
|
225
|
+
*
|
|
226
|
+
* - "en-GB" for British English.
|
|
227
|
+
* - "en,nl" to enable both English and Dutch.
|
|
228
|
+
*
|
|
229
|
+
* @default "en"
|
|
230
|
+
*/
|
|
231
|
+
language?: LocaleId;
|
|
196
232
|
/**
|
|
197
233
|
* Additional settings for individual languages.
|
|
198
234
|
*
|
|
@@ -672,7 +708,7 @@ export interface ExperimentalFileSettings {
|
|
|
672
708
|
/**
|
|
673
709
|
* Future Plugin support
|
|
674
710
|
* @experimental
|
|
675
|
-
* @
|
|
711
|
+
* @since 6.2.0
|
|
676
712
|
*/
|
|
677
713
|
plugins?: Plugin[];
|
|
678
714
|
}
|
|
@@ -694,14 +730,14 @@ export interface ExperimentalBaseSettings {
|
|
|
694
730
|
/**
|
|
695
731
|
* Parser to use for the file content
|
|
696
732
|
* @experimental
|
|
697
|
-
* @
|
|
733
|
+
* @since 6.2.0
|
|
698
734
|
*/
|
|
699
735
|
parser?: ParserName;
|
|
700
736
|
}
|
|
701
737
|
/**
|
|
702
738
|
* Plugin API
|
|
703
739
|
* @experimental
|
|
704
|
-
* @
|
|
740
|
+
* @since 6.2.0
|
|
705
741
|
*/
|
|
706
742
|
export interface Plugin {
|
|
707
743
|
parsers?: Parser[];
|
|
@@ -90,7 +90,7 @@ export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinit
|
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Inline Dictionary Definitions
|
|
93
|
-
* @
|
|
93
|
+
* @since 6.23.0
|
|
94
94
|
*/
|
|
95
95
|
export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords;
|
|
96
96
|
/**
|
|
@@ -198,11 +198,15 @@ export interface CharacterSetCosts {
|
|
|
198
198
|
*/
|
|
199
199
|
penalty?: number;
|
|
200
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* @hidden
|
|
203
|
+
*/
|
|
204
|
+
export type IRegExp = RegExp;
|
|
201
205
|
export interface PatternAdjustment {
|
|
202
206
|
/** Id of the Adjustment, i.e. `short-compound` */
|
|
203
207
|
id: string;
|
|
204
208
|
/** RegExp pattern to match */
|
|
205
|
-
regexp: string |
|
|
209
|
+
regexp: string | IRegExp;
|
|
206
210
|
/** The amount of penalty to apply. */
|
|
207
211
|
penalty: number;
|
|
208
212
|
}
|
package/dist/configFields.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "8.
|
|
6
|
+
"version": "8.8.1",
|
|
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": "
|
|
89
|
+
"gitHead": "6381846ffce8b9a349bfda03262297aa8e301ef5"
|
|
90
90
|
}
|