@cspell/cspell-types 7.3.3 → 7.3.5
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 +325 -75
- package/dist/CSpellSettingsDef.d.ts +8 -4
- package/dist/DictionaryDefinition.d.ts +12 -6
- package/package.json +5 -11
- package/ajv.config.js +0 -11
|
@@ -175,12 +175,10 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
|
|
|
175
175
|
/** languageIds for the files to spell check. */
|
|
176
176
|
enabledLanguageIds?: LanguageIdSingle[];
|
|
177
177
|
/**
|
|
178
|
-
* @title File Types to Check
|
|
179
|
-
* @scope resource
|
|
180
|
-
* @uniqueItems true
|
|
181
|
-
* @markdownDescription
|
|
182
178
|
* Enable / Disable checking file types (languageIds).
|
|
179
|
+
*
|
|
183
180
|
* These are in additional to the file types specified by `cSpell.enabledLanguageIds`.
|
|
181
|
+
*
|
|
184
182
|
* To disable a language, prefix with `!` as in `!json`,
|
|
185
183
|
*
|
|
186
184
|
* Example:
|
|
@@ -189,12 +187,16 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
|
|
|
189
187
|
* !json // disable checking for json
|
|
190
188
|
* kotlin // enable checking for kotlin
|
|
191
189
|
* ```
|
|
190
|
+
* @title File Types to Check
|
|
191
|
+
* @scope resource
|
|
192
|
+
* @uniqueItems true
|
|
192
193
|
*/
|
|
193
194
|
enableFiletypes?: LanguageIdSingle[];
|
|
194
195
|
/**
|
|
195
196
|
* Additional settings for individual languages.
|
|
196
197
|
*
|
|
197
198
|
* See [Language Settings](https://cspell.org/configuration/language-settings/) for more details.
|
|
199
|
+
*
|
|
198
200
|
*/
|
|
199
201
|
languageSettings?: LanguageSetting[];
|
|
200
202
|
/** Forces the spell checker to assume a give language id. Used mainly as an Override. */
|
|
@@ -477,6 +479,8 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
477
479
|
* }
|
|
478
480
|
* ]
|
|
479
481
|
* ```
|
|
482
|
+
* Defines a list of patterns that can be used with the `ignoreRegExpList` and
|
|
483
|
+
* `includeRegExpList` options.
|
|
480
484
|
*/
|
|
481
485
|
patterns?: RegExpPatternDefinition[];
|
|
482
486
|
}
|
|
@@ -32,10 +32,12 @@ export interface DictionaryDefinitionBase {
|
|
|
32
32
|
noSuggest?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Type of file:
|
|
35
|
-
* S - single word per line,
|
|
36
|
-
* W - each line can contain one or more words separated by space,
|
|
37
|
-
* C - each line is treated like code (Camel Case is allowed).
|
|
35
|
+
* - S - single word per line,
|
|
36
|
+
* - W - each line can contain one or more words separated by space,
|
|
37
|
+
* - C - each line is treated like code (Camel Case is allowed).
|
|
38
|
+
*
|
|
38
39
|
* Default is S.
|
|
40
|
+
*
|
|
39
41
|
* C is the slowest to load due to the need to split each line based upon code splitting rules.
|
|
40
42
|
* @default "S"
|
|
41
43
|
*/
|
|
@@ -123,10 +125,12 @@ export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
|
|
|
123
125
|
file: FsDictionaryPath;
|
|
124
126
|
/**
|
|
125
127
|
* Type of file:
|
|
126
|
-
* S - single word per line,
|
|
127
|
-
* W - each line can contain one or more words separated by space,
|
|
128
|
-
* C - each line is treated like code (Camel Case is allowed).
|
|
128
|
+
* - S - single word per line,
|
|
129
|
+
* - W - each line can contain one or more words separated by space,
|
|
130
|
+
* - C - each line is treated like code (Camel Case is allowed).
|
|
131
|
+
*
|
|
129
132
|
* Default is S.
|
|
133
|
+
*
|
|
130
134
|
* C is the slowest to load due to the need to split each line based upon code splitting rules.
|
|
131
135
|
* @default "S"
|
|
132
136
|
*/
|
|
@@ -145,6 +149,7 @@ export type CustomDictionaryScope = 'user' | 'workspace' | 'folder';
|
|
|
145
149
|
* `user`, `workspace`, or `folder`.
|
|
146
150
|
* When `addWords` is true, indicates that the spell checker can add words
|
|
147
151
|
* to the file.
|
|
152
|
+
*
|
|
148
153
|
* Note: only plain text files with one word per line are supported at this moment.
|
|
149
154
|
*/
|
|
150
155
|
export interface DictionaryDefinitionCustom extends DictionaryDefinitionPreferred {
|
|
@@ -152,6 +157,7 @@ export interface DictionaryDefinitionCustom extends DictionaryDefinitionPreferre
|
|
|
152
157
|
path: CustomDictionaryPath;
|
|
153
158
|
/**
|
|
154
159
|
* Defines the scope for when words will be added to the dictionary.
|
|
160
|
+
*
|
|
155
161
|
* Scope values: `user`, `workspace`, `folder`.
|
|
156
162
|
*/
|
|
157
163
|
scope?: CustomDictionaryScope | CustomDictionaryScope[];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "7.3.
|
|
6
|
+
"version": "7.3.5",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -52,13 +52,11 @@
|
|
|
52
52
|
"scripts": {
|
|
53
53
|
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
54
54
|
"build": "pnpm build:tsc && pnpm run build-schema",
|
|
55
|
-
"build:tsc": "tsc -
|
|
56
|
-
"build-schema": "
|
|
55
|
+
"build:tsc": "tsc -p tsconfig.json",
|
|
56
|
+
"build-schema": "pnpm build-cspell-schema",
|
|
57
57
|
"clean-build": "pnpm run clean && pnpm run build",
|
|
58
58
|
"coverage": "vitest run --coverage",
|
|
59
|
-
"test": "
|
|
60
|
-
"test:unit": "vitest run",
|
|
61
|
-
"test:schema": "ajv -s ./cspell.schema.json -d \"cspell.test.{json,yaml}\" -c ./ajv.config.js",
|
|
59
|
+
"test": "vitest run",
|
|
62
60
|
"prepare": "echo Skip Building Types"
|
|
63
61
|
},
|
|
64
62
|
"repository": {
|
|
@@ -86,9 +84,5 @@
|
|
|
86
84
|
"engines": {
|
|
87
85
|
"node": ">=16"
|
|
88
86
|
},
|
|
89
|
-
"
|
|
90
|
-
"ajv-cli": "^5.0.0",
|
|
91
|
-
"ts-json-schema-generator": "^1.3.0"
|
|
92
|
-
},
|
|
93
|
-
"gitHead": "da65ffafaa6a039cedc52d9e029c53ddd273a1fb"
|
|
87
|
+
"gitHead": "23fb2fbae335526185ab53a22e0cac0f3e8f1a25"
|
|
94
88
|
}
|
package/ajv.config.js
DELETED