|
37 | 37 | "additionalProperties": false,
|
38 | 38 | "description": "CSpell options to pass to the spell checker.",
|
39 | 39 | "properties": {
|
| 40 | + "allowCompoundWords": { |
| 41 | + "default": false, |
| 42 | + "description": "True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.", |
| 43 | + "type": "boolean" |
| 44 | + }, |
| 45 | + "dictionaries": { |
| 46 | + "description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.", |
| 47 | + "items": { |
| 48 | + "description": "Reference to a dictionary by name. One of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }", |
| 49 | + "type": "string" |
| 50 | + }, |
| 51 | + "type": "array" |
| 52 | + }, |
| 53 | + "dictionaryDefinition": { |
| 54 | + "additionalProperties": false, |
| 55 | + "properties": { |
| 56 | + "description": { |
| 57 | + "description": "Optional description.", |
| 58 | + "type": "string" |
| 59 | + }, |
| 60 | + "name": { |
| 61 | + "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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.", |
| 62 | + "pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$", |
| 63 | + "type": "string" |
| 64 | + }, |
| 65 | + "noSuggest": { |
| 66 | + "description": "Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.", |
| 67 | + "type": "boolean" |
| 68 | + }, |
| 69 | + "path": { |
| 70 | + "description": "Path to the file.", |
| 71 | + "pattern": "^.*\\.(?:txt|trie)(?:\\.gz)?$", |
| 72 | + "type": "string" |
| 73 | + }, |
| 74 | + "repMap": { |
| 75 | + "description": "Replacement pairs.", |
| 76 | + "items": { |
| 77 | + "items": { |
| 78 | + "type": "string" |
| 79 | + }, |
| 80 | + "maxItems": 2, |
| 81 | + "minItems": 2, |
| 82 | + "type": "array" |
| 83 | + }, |
| 84 | + "type": "array" |
| 85 | + }, |
| 86 | + "type": { |
| 87 | + "default": "S", |
| 88 | + "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.", |
| 89 | + "enum": [ |
| 90 | + "S", |
| 91 | + "W", |
| 92 | + "C", |
| 93 | + "T" |
| 94 | + ], |
| 95 | + "type": "string" |
| 96 | + }, |
| 97 | + "useCompounds": { |
| 98 | + "description": "Use Compounds.", |
| 99 | + "type": "boolean" |
| 100 | + } |
| 101 | + }, |
| 102 | + "required": [ |
| 103 | + "name", |
| 104 | + "path" |
| 105 | + ], |
| 106 | + "type": "object" |
| 107 | + }, |
| 108 | + "enabled": { |
| 109 | + "default": true, |
| 110 | + "description": "Is the spell checker enabled.", |
| 111 | + "type": "boolean" |
| 112 | + }, |
40 | 113 | "flagWords": {
|
41 | 114 | "description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
|
42 | 115 | "items": {
|
43 | 116 | "type": "string"
|
44 | 117 | },
|
45 | 118 | "type": "array"
|
46 | 119 | },
|
| 120 | + "ignoreRegExpList": { |
| 121 | + "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).", |
| 122 | + "items": { |
| 123 | + "description": "A PatternRef is a Pattern or PatternId.", |
| 124 | + "type": "string" |
| 125 | + }, |
| 126 | + "type": "array" |
| 127 | + }, |
47 | 128 | "ignoreWords": {
|
48 | 129 | "description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
|
49 | 130 | "items": {
|
50 | 131 | "type": "string"
|
51 | 132 | },
|
52 | 133 | "type": "array"
|
53 | 134 | },
|
| 135 | + "import": { |
| 136 | + "anyOf": [ |
| 137 | + { |
| 138 | + "description": "A File System Path. Relative paths are relative to the configuration file.", |
| 139 | + "type": "string" |
| 140 | + }, |
| 141 | + { |
| 142 | + "items": { |
| 143 | + "description": "A File System Path. Relative paths are relative to the configuration file.", |
| 144 | + "type": "string" |
| 145 | + }, |
| 146 | + "type": "array" |
| 147 | + } |
| 148 | + ], |
| 149 | + "description": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details." |
| 150 | + }, |
| 151 | + "includeRegExpList": { |
| 152 | + "description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\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).", |
| 153 | + "items": { |
| 154 | + "description": "A PatternRef is a Pattern or PatternId.", |
| 155 | + "type": "string" |
| 156 | + }, |
| 157 | + "type": "array" |
| 158 | + }, |
54 | 159 | "words": {
|
55 | 160 | "description": "List of words to be considered correct.",
|
56 | 161 | "items": {
|
|
0 commit comments