Skip to content

Commit

Permalink
fix: Update CSpell (main) (#3923)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason3S <[email protected]>
  • Loading branch information
1 parent fb4fb36 commit 4c1649a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,11 @@
"markdownDescription": "Settings related to CSpell Command Line Tool.",
"order": 5,
"properties": {
"cSpell.ignoreRandomStrings": {
"default": true,
"markdownDescription": "Ignore sequences of characters that look like random strings.",
"type": "boolean"
},
"cSpell.ignoreRegExpList": {
"items": {
"type": "string"
Expand All @@ -797,6 +802,11 @@
"scope": "resource",
"type": "array"
},
"cSpell.minRandomLength": {
"default": 40,
"markdownDescription": "The minimum length of a random string to be ignored.",
"type": "number"
},
"cSpell.overrides": {
"items": {
"additionalProperties": false,
Expand Down Expand Up @@ -1091,6 +1101,11 @@
"markdownDescription": "Optional identifier.",
"type": "string"
},
"ignoreRandomStrings": {
"default": true,
"markdownDescription": "Ignore sequences of characters that look like random strings.",
"type": "boolean"
},
"ignoreRegExpList": {
"items": {
"anyOf": [
Expand Down Expand Up @@ -1711,6 +1726,11 @@
"markdownDescription": "The maximum number of problems to report in a file.",
"type": "number"
},
"minRandomLength": {
"default": 40,
"markdownDescription": "The minimum length of a random string to be ignored.",
"type": "number"
},
"minWordLength": {
"default": 4,
"markdownDescription": "The minimum length of a word before checking it against a dictionary.",
Expand Down
24 changes: 24 additions & 0 deletions packages/_server/spell-checker-config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
"description": "Settings related to CSpell Command Line Tool.",
"order": 5,
"properties": {
"cSpell.ignoreRandomStrings": {
"default": true,
"description": "Ignore sequences of characters that look like random strings.",
"markdownDescription": "Ignore sequences of characters that look like random strings.",
"type": "boolean"
},
"cSpell.ignoreRegExpList": {
"description": "List of regular expressions or Pattern names (defined in `#cSpell.patterns#`) to exclude from spell checking.\n\n- When using the VS Code Preferences UI, it is not necessary to escape the `\\`, VS Code takes care of that.\n- When editing the VS Code `settings.json` file, it is necessary to escape `\\`. Each `\\` becomes `\\\\`.\n\nThe default regular expression flags are `gi`. Add `u` (`gui`), to enable Unicode.\n\n| VS Code UI | settings.json | Description | | :------------------ | :-------------------- | :------------------------------------------- | | `/\\\\[a-z]+/gi` | `/\\\\\\\\[a-z]+/gi` | Exclude LaTeX command like `\\mapsto` | | `/\\b[A-Z]{3,5}\\b/g` | `/\\\\b[A-Z]{3,5}\\\\b/g` | Exclude full-caps acronyms of 3-5 length. | | `CStyleComment` | `CStyleComment` | A built in pattern |",
"items": {
Expand All @@ -109,6 +115,12 @@
"scope": "resource",
"type": "array"
},
"cSpell.minRandomLength": {
"default": 40,
"description": "The minimum length of a random string to be ignored.",
"markdownDescription": "The minimum length of a random string to be ignored.",
"type": "number"
},
"cSpell.overrides": {
"description": "Overrides are used to apply settings for specific files in your project.\n\n**Example:**\n\n```jsonc \"cSpell.overrides\": [ // Force `*.hrr` and `*.crr` files to be treated as `cpp` files: { \"filename\": \"**/{*.hrr,*.crr}\", \"languageId\": \"cpp\" }, // Force `dutch/**/*.txt` to be treated as Dutch (dictionary needs to be installed separately): { \"filename\": \"**/dutch/**/*.txt\", \"language\": \"nl\" } ] ```",
"items": {
Expand Down Expand Up @@ -445,6 +457,12 @@
"markdownDescription": "Optional identifier.",
"type": "string"
},
"ignoreRandomStrings": {
"default": true,
"description": "Ignore sequences of characters that look like random strings.",
"markdownDescription": "Ignore sequences of characters that look like random strings.",
"type": "boolean"
},
"ignoreRegExpList": {
"description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
"items": {
Expand Down Expand Up @@ -1143,6 +1161,12 @@
"markdownDescription": "The maximum number of problems to report in a file.",
"type": "number"
},
"minRandomLength": {
"default": 40,
"description": "The minimum length of a random string to be ignored.",
"markdownDescription": "The minimum length of a random string to be ignored.",
"type": "number"
},
"minWordLength": {
"default": 4,
"description": "The minimum length of a word before checking it against a dictionary.",
Expand Down

0 comments on commit 4c1649a

Please sign in to comment.