Skip to content

Commit

Permalink
dev: Update C# dictionary (#1947)
Browse files Browse the repository at this point in the history
* dev: Update C# dictionary settings

* fix: Update description of `caseSensitive` setting.
  • Loading branch information
Jason3S committed Nov 4, 2021
1 parent b57e86d commit 27fe1d6
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 25 deletions.
6 changes: 3 additions & 3 deletions cspell.schema.json
Expand Up @@ -254,7 +254,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down Expand Up @@ -394,7 +394,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down Expand Up @@ -737,7 +737,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down
5 changes: 0 additions & 5 deletions packages/cspell-bundled-dicts/cspell-default.config.js
Expand Up @@ -32,11 +32,6 @@ const settings = {
},
],
languageSettings: [
{
languageId: 'csharp',
allowCompoundWords: true,
dictionaries: ['csharp', 'dotnet', 'npm'],
},
{
languageId: 'javascript,javascriptreact',
dictionaries: ['typescript', 'node', 'npm'],
Expand Down
5 changes: 0 additions & 5 deletions packages/cspell-bundled-dicts/cspell-default.config.ts
Expand Up @@ -34,11 +34,6 @@ const settings: CSpellSettings = {
],

languageSettings: [
{
languageId: 'csharp',
allowCompoundWords: true,
dictionaries: ['csharp', 'dotnet', 'npm'],
},
{
languageId: 'javascript,javascriptreact',
dictionaries: ['typescript', 'node', 'npm'],
Expand Down
12 changes: 6 additions & 6 deletions packages/cspell-bundled-dicts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cspell-bundled-dicts/package.json
Expand Up @@ -49,7 +49,7 @@
"@cspell/dict-companies": "^2.0.2",
"@cspell/dict-cpp": "^1.1.40",
"@cspell/dict-cryptocurrencies": "^1.0.10",
"@cspell/dict-csharp": "^1.0.11",
"@cspell/dict-csharp": "^2.0.1",
"@cspell/dict-css": "^1.0.12",
"@cspell/dict-django": "^1.0.26",
"@cspell/dict-dotnet": "^1.0.32",
Expand All @@ -76,7 +76,7 @@
"@cspell/dict-ruby": "^1.0.14",
"@cspell/dict-rust": "^1.0.23",
"@cspell/dict-scala": "^1.0.21",
"@cspell/dict-software-terms": "^2.0.8",
"@cspell/dict-software-terms": "^2.0.9",
"@cspell/dict-swift": "^1.0.1",
"@cspell/dict-typescript": "^1.0.19",
"@cspell/dict-vue": "^2.0.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/cspell-types/cspell.schema.json
Expand Up @@ -254,7 +254,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down Expand Up @@ -394,7 +394,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down Expand Up @@ -737,7 +737,7 @@
},
"caseSensitive": {
"default": false,
"description": "Words must match case rules.",
"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.",
"type": "boolean"
},
"description": {
Expand Down
7 changes: 6 additions & 1 deletion packages/cspell-types/src/CSpellSettingsDef.ts
Expand Up @@ -300,7 +300,12 @@ export interface BaseSetting {
allowCompoundWords?: boolean;

/**
* Words must match case rules.
* Determines if words must match case and accent rules.
*
* - `false` - Case is ignored and accents can be missing on the entire word.
* Incorrect accents or partially missing accents will be marked as incorrect.
* - `true` - Case and accents are enforced.
*
* @default false
*/
caseSensitive?: boolean;
Expand Down

0 comments on commit 27fe1d6

Please sign in to comment.