Skip to content

Commit f933ba5

Browse files
feat: Update CSpell (main) (#4521)
Co-authored-by: Jason3S <[email protected]>
1 parent 4cd37d8 commit f933ba5

File tree

8 files changed

+249
-148
lines changed

8 files changed

+249
-148
lines changed

package-lock.json

Lines changed: 130 additions & 129 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,18 @@
17781778
"markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
17791779
"type": "array"
17801780
},
1781+
"unknownWords": {
1782+
"default": "report-all",
1783+
"enum": [
1784+
"report-all",
1785+
"report-simple",
1786+
"report-common-typos",
1787+
"report-flagged"
1788+
],
1789+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1790+
"since": "9.1.0",
1791+
"type": "string"
1792+
},
17811793
"words": {
17821794
"items": {
17831795
"type": "string"
@@ -1912,6 +1924,18 @@
19121924
"markdownDescription": "The maximum amount of time in milliseconds to generate suggestions for a word.",
19131925
"type": "number"
19141926
},
1927+
"unknownWords": {
1928+
"default": "report-all",
1929+
"enum": [
1930+
"report-all",
1931+
"report-simple",
1932+
"report-common-typos",
1933+
"report-flagged"
1934+
],
1935+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1936+
"since": "9.1.0",
1937+
"type": "string"
1938+
},
19151939
"usePnP": {
19161940
"default": false,
19171941
"markdownDescription": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading\npackages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence\nof a PnP file and load it.",
@@ -1970,6 +1994,18 @@
19701994
"markdownDescription": "Defines a list of patterns that can be used with the `#cSpell.ignoreRegExpList#` and\n`#cSpell.includeRegExpList#` options.\n\n**Example:**\n\n```jsonc\n\"cSpell.patterns\": [\n {\n \"name\": \"comment-single-line\",\n \"pattern\": \"/#.*/g\"\n },\n {\n \"name\": \"comment-multi-line\",\n \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\"\n }\n]\n```",
19711995
"scope": "resource",
19721996
"type": "array"
1997+
},
1998+
"cSpell.unknownWords": {
1999+
"default": "report-all",
2000+
"enum": [
2001+
"report-all",
2002+
"report-simple",
2003+
"report-common-typos",
2004+
"report-flagged"
2005+
],
2006+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
2007+
"since": "9.1.0",
2008+
"type": "string"
19732009
}
19742010
},
19752011
"title": "CSpell",
@@ -3089,6 +3125,18 @@
30893125
"markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
30903126
"type": "array"
30913127
},
3128+
"unknownWords": {
3129+
"default": "report-all",
3130+
"enum": [
3131+
"report-all",
3132+
"report-simple",
3133+
"report-common-typos",
3134+
"report-flagged"
3135+
],
3136+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
3137+
"since": "9.1.0",
3138+
"type": "string"
3139+
},
30923140
"words": {
30933141
"items": {
30943142
"type": "string"
@@ -4225,10 +4273,10 @@
42254273
"vitest": "~3.2.2"
42264274
},
42274275
"dependencies": {
4228-
"@cspell/cspell-bundled-dicts": "^9.0.2",
4229-
"@cspell/cspell-types": "^9.0.2",
4276+
"@cspell/cspell-bundled-dicts": "^9.1.1",
4277+
"@cspell/cspell-types": "^9.1.1",
42304278
"@cspell/dict-cspell-bundle": "^2.0.7",
4231-
"cspell": "^9.0.2",
4279+
"cspell": "^9.1.1",
42324280
"regexp-worker": "^3.0.0"
42334281
},
42344282
"vsce": {

packages/__utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"watch": "tsc -p . --watch"
4747
},
4848
"dependencies": {
49-
"@cspell/url": "^9.0.2",
49+
"@cspell/url": "^9.1.1",
5050
"vscode-uri": "^3.1.0"
5151
},
5252
"engines": {

packages/_integrationTests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "",
2525
"license": "MIT",
2626
"devDependencies": {
27-
"@cspell/cspell-types": "^9.0.2",
27+
"@cspell/cspell-types": "^9.1.1",
2828
"@cspell/dict-de-de": "^4.1.0",
2929
"@types/chai": "^5.2.2",
3030
"@types/decompress": "^4.2.7",

packages/_server/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
"yargs": "^18.0.0"
4141
},
4242
"dependencies": {
43-
"@cspell/cspell-bundled-dicts": "^9.0.2",
44-
"@cspell/cspell-pipe": "^9.0.2",
45-
"@cspell/cspell-types": "^9.0.2",
46-
"@cspell/url": "^9.0.2",
43+
"@cspell/cspell-bundled-dicts": "^9.1.1",
44+
"@cspell/cspell-pipe": "^9.1.1",
45+
"@cspell/cspell-types": "^9.1.1",
46+
"@cspell/url": "^9.1.1",
4747
"@internal/common-utils": "file:../__utils",
48-
"cspell-config-lib": "^9.0.2",
49-
"cspell-gitignore": "^9.0.2",
50-
"cspell-glob": "^9.0.2",
51-
"cspell-io": "^9.0.2",
52-
"cspell-lib": "^9.0.2",
48+
"cspell-config-lib": "^9.1.1",
49+
"cspell-gitignore": "^9.1.1",
50+
"cspell-glob": "^9.1.1",
51+
"cspell-io": "^9.1.1",
52+
"cspell-lib": "^9.1.1",
5353
"gensequence": "^7.0.0",
5454
"json-rpc-api": "file:../json-rpc-api",
5555
"rxjs": "^7.8.2",

packages/_server/spell-checker-config.schema.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,19 @@
11911191
"markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
11921192
"type": "array"
11931193
},
1194+
"unknownWords": {
1195+
"default": "report-all",
1196+
"description": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1197+
"enum": [
1198+
"report-all",
1199+
"report-simple",
1200+
"report-common-typos",
1201+
"report-flagged"
1202+
],
1203+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1204+
"since": "9.1.0",
1205+
"type": "string"
1206+
},
11941207
"words": {
11951208
"description": "List of words to be considered correct.",
11961209
"items": {
@@ -1345,6 +1358,19 @@
13451358
"markdownDescription": "The maximum amount of time in milliseconds to generate suggestions for a word.",
13461359
"type": "number"
13471360
},
1361+
"unknownWords": {
1362+
"default": "report-all",
1363+
"description": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1364+
"enum": [
1365+
"report-all",
1366+
"report-simple",
1367+
"report-common-typos",
1368+
"report-flagged"
1369+
],
1370+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1371+
"since": "9.1.0",
1372+
"type": "string"
1373+
},
13481374
"usePnP": {
13491375
"default": false,
13501376
"description": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading packages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence of a PnP file and load it.",
@@ -1409,6 +1435,19 @@
14091435
"markdownDescription": "Defines a list of patterns that can be used with the `#cSpell.ignoreRegExpList#` and\n`#cSpell.includeRegExpList#` options.\n\n**Example:**\n\n```jsonc\n\"cSpell.patterns\": [\n {\n \"name\": \"comment-single-line\",\n \"pattern\": \"/#.*/g\"\n },\n {\n \"name\": \"comment-multi-line\",\n \"pattern\": \"/(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)/g\"\n }\n]\n```",
14101436
"scope": "resource",
14111437
"type": "array"
1438+
},
1439+
"cSpell.unknownWords": {
1440+
"default": "report-all",
1441+
"description": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1442+
"enum": [
1443+
"report-all",
1444+
"report-simple",
1445+
"report-common-typos",
1446+
"report-flagged"
1447+
],
1448+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1449+
"since": "9.1.0",
1450+
"type": "string"
14121451
}
14131452
},
14141453
"title": "CSpell",
@@ -2663,6 +2702,19 @@
26632702
"markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
26642703
"type": "array"
26652704
},
2705+
"unknownWords": {
2706+
"default": "report-all",
2707+
"description": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
2708+
"enum": [
2709+
"report-all",
2710+
"report-simple",
2711+
"report-common-typos",
2712+
"report-flagged"
2713+
],
2714+
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
2715+
"since": "9.1.0",
2716+
"type": "string"
2717+
},
26662718
"words": {
26672719
"description": "List of words to be considered correct.",
26682720
"items": {

packages/_serverPatternMatcher/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"yargs": "^18.0.0"
4747
},
4848
"dependencies": {
49-
"@cspell/cspell-types": "^9.0.2",
49+
"@cspell/cspell-types": "^9.1.1",
5050
"@internal/common-utils": "file:../__utils",
51-
"cspell-lib": "^9.0.2",
51+
"cspell-lib": "^9.1.1",
5252
"regexp-worker": "^3.0.0",
5353
"vscode-languageserver": "^9.0.1",
5454
"vscode-languageserver-textdocument": "^1.0.12",

packages/client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"webpack-cli": "^6.0.1"
5454
},
5555
"dependencies": {
56-
"@cspell/cspell-pipe": "^9.0.2",
57-
"@cspell/cspell-types": "^9.0.2",
56+
"@cspell/cspell-pipe": "^9.1.1",
57+
"@cspell/cspell-types": "^9.1.1",
5858
"@internal/common-utils": "file:../__utils",
5959
"@internal/locale-resolver": "file:../__locale-resolver",
6060
"@internal/server-pattern-matcher": "file:../_serverPatternMatcher",
@@ -64,7 +64,7 @@
6464
"camelize": "^1.0.1",
6565
"code-spell-checker-server": "file:../_server",
6666
"comment-json": "^4.2.5",
67-
"cspell-lib": "^9.0.2",
67+
"cspell-lib": "^9.1.1",
6868
"fast-deep-equal": "^3.1.3",
6969
"kefir": "^3.8.8",
7070
"optionator": "^0.9.4",

0 commit comments

Comments
 (0)