@cspell/cspell-types 8.8.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.
@@ -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 `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample: ``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```",
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 `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
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 to Check",
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": "languageIds for the files to spell check.",
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": "languageIds for the files to spell check.",
1216
- "type": "array"
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 `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample: ``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```",
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 `cSpell.enabledLanguageIds`.\n\nTo disable a language, prefix with `!` as in `!json`,\n\nExample:\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```",
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 to Check",
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": "languageIds for the files to spell check.",
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": "languageIds for the files to spell check.",
1711
- "type": "array"
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,
@@ -160,39 +160,75 @@ export interface ExtendableSettings extends Settings {
160
160
  */
161
161
  overrides?: OverrideSettings[];
162
162
  }
163
- export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings {
163
+ export interface SpellCheckerExtensionSettings {
164
164
  /**
165
- * Current active spelling language. This specifies the language locale to use in choosing the
166
- * general dictionary.
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 `cSpell.enabledLanguageIds`.
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
- * Example:
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
- * @title File Types to Check
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
  *
@@ -11,6 +11,7 @@ exports.ConfigFields = {
11
11
  enabled: 'enabled',
12
12
  enabledLanguageIds: 'enabledLanguageIds',
13
13
  enableFiletypes: 'enableFiletypes',
14
+ enabledFileTypes: 'enabledFileTypes',
14
15
  enableGlobDot: 'enableGlobDot',
15
16
  failFast: 'failFast',
16
17
  features: 'features',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "8.8.0",
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": "a42bce675c00cb2d51809b3ae3894119ea4f5ce7"
89
+ "gitHead": "6381846ffce8b9a349bfda03262297aa8e301ef5"
90
90
  }