@cspell/cspell-types 5.12.1 → 5.12.6

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.
@@ -55,6 +55,11 @@
55
55
  "$ref": "#/definitions/ReplaceMap",
56
56
  "description": "Replacement pairs"
57
57
  },
58
+ "type": {
59
+ "$ref": "#/definitions/DictionaryFileTypes",
60
+ "default": "S",
61
+ "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed) Default is S C is the slowest to load due to the need to split each line based upon code splitting rules."
62
+ },
58
63
  "useCompounds": {
59
64
  "description": "Use Compounds",
60
65
  "type": "boolean"
@@ -108,6 +113,11 @@
108
113
  ],
109
114
  "description": "Defines the scope for when words will be added to the dictionary. Scope values: `user`, `workspace`, `folder`"
110
115
  },
116
+ "type": {
117
+ "$ref": "#/definitions/DictionaryFileTypes",
118
+ "default": "S",
119
+ "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed) Default is S C is the slowest to load due to the need to split each line based upon code splitting rules."
120
+ },
111
121
  "useCompounds": {
112
122
  "description": "Use Compounds",
113
123
  "type": "boolean"
@@ -143,6 +153,11 @@
143
153
  "$ref": "#/definitions/ReplaceMap",
144
154
  "description": "Replacement pairs"
145
155
  },
156
+ "type": {
157
+ "$ref": "#/definitions/DictionaryFileTypes",
158
+ "default": "S",
159
+ "description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed) Default is S C is the slowest to load due to the need to split each line based upon code splitting rules."
160
+ },
146
161
  "useCompounds": {
147
162
  "description": "Use Compounds",
148
163
  "type": "boolean"
@@ -154,6 +169,15 @@
154
169
  ],
155
170
  "type": "object"
156
171
  },
172
+ "DictionaryFileTypes": {
173
+ "enum": [
174
+ "S",
175
+ "W",
176
+ "C",
177
+ "T"
178
+ ],
179
+ "type": "string"
180
+ },
157
181
  "DictionaryId": {
158
182
  "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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`",
159
183
  "pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
@@ -230,7 +254,7 @@
230
254
  },
231
255
  "caseSensitive": {
232
256
  "default": false,
233
- "description": "Words must match case rules.",
257
+ "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.",
234
258
  "type": "boolean"
235
259
  },
236
260
  "description": {
@@ -370,7 +394,7 @@
370
394
  },
371
395
  "caseSensitive": {
372
396
  "default": false,
373
- "description": "Words must match case rules.",
397
+ "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.",
374
398
  "type": "boolean"
375
399
  },
376
400
  "description": {
@@ -713,7 +737,7 @@
713
737
  },
714
738
  "caseSensitive": {
715
739
  "default": false,
716
- "description": "Words must match case rules.",
740
+ "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.",
717
741
  "type": "boolean"
718
742
  },
719
743
  "description": {
@@ -252,7 +252,12 @@ export interface BaseSetting {
252
252
  */
253
253
  allowCompoundWords?: boolean;
254
254
  /**
255
- * Words must match case rules.
255
+ * Determines if words must match case and accent rules.
256
+ *
257
+ * - `false` - Case is ignored and accents can be missing on the entire word.
258
+ * Incorrect accents or partially missing accents will be marked as incorrect.
259
+ * - `true` - Case and accents are enforced.
260
+ *
256
261
  * @default false
257
262
  */
258
263
  caseSensitive?: boolean;
@@ -319,6 +324,16 @@ export interface DictionaryDefinitionBase {
319
324
  * possible suggestions.
320
325
  */
321
326
  noSuggest?: boolean;
327
+ /**
328
+ * Type of file:
329
+ * S - single word per line,
330
+ * W - each line can contain one or more words separated by space,
331
+ * C - each line is treated like code (Camel Case is allowed)
332
+ * Default is S
333
+ * C is the slowest to load due to the need to split each line based upon code splitting rules.
334
+ * @default "S"
335
+ */
336
+ type?: DictionaryFileTypes;
322
337
  }
323
338
  export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
324
339
  /** Path to the file */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "5.12.1",
6
+ "version": "5.12.6",
7
7
  "description": "Types for cspell and cspell-lib",
8
8
  "main": "dist/index.js",
9
9
  "typings": "dist/index.d.ts",
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "ajv-cli": "^5.0.0",
52
- "jest": "^27.2.4",
52
+ "jest": "^27.3.1",
53
53
  "rimraf": "^3.0.2",
54
- "ts-json-schema-generator": "^0.95.0",
55
- "typedoc": "^0.22.5",
56
- "typedoc-plugin-markdown": "^3.11.2",
57
- "typescript": "^4.4.3"
54
+ "ts-json-schema-generator": "^0.96.0",
55
+ "typedoc": "^0.22.7",
56
+ "typedoc-plugin-markdown": "^3.11.3",
57
+ "typescript": "^4.4.4"
58
58
  },
59
- "gitHead": "43a626145377e1f760ad51fc58701313c7a26243"
59
+ "gitHead": "430bb6103b03793d5f0b746e7c643d12fa313216"
60
60
  }