Skip to content

Commit

Permalink
fix: Remove .txt restriction from dictionary files. (#3033)
Browse files Browse the repository at this point in the history
Related to: [Support dictionary files without a `.txt` ending. · Issue #2001 · streetsidesoftware/vscode-spell-checker](streetsidesoftware/vscode-spell-checker#2001)
  • Loading branch information
Jason3S committed Jun 9, 2022
1 parent 7cc032f commit ee706be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
20 changes: 5 additions & 15 deletions cspell.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@
"name": "Test: Jest current-file",
"program": "${fileWorkspaceFolder}/node_modules/.bin/jest",
"cwd": "${fileWorkspaceFolder}",
"args": [
"--runInBand",
"${fileBasename}"
],
"args": ["--runInBand", "${fileBasename}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
Expand All @@ -90,9 +87,7 @@
"name": "Test: Jest Entire Folder",
"program": "${fileWorkspaceFolder}/node_modules/.bin/jest",
"cwd": "${fileWorkspaceFolder}",
"args": [
"--runInBand"
],
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
Expand All @@ -108,15 +103,10 @@
"cSpell.customDictionaries": {
"workspace": true
},
"cSpell.enableFiletypes": [
"shellscript"
]
"cSpell.enableFiletypes": ["shellscript"],
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"extensions": {
"recommendations": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
"recommendations": ["streetsidesoftware.code-spell-checker", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
}
5 changes: 2 additions & 3 deletions cspell.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@
"type": "object"
},
"CustomDictionaryPath": {
"description": "A File System Path to a dictionary file.",
"pattern": "^.*\\.txt$",
"type": "string"
"$ref": "#/definitions/FsPath",
"description": "A File System Path to a dictionary file."
},
"CustomDictionaryScope": {
"description": "Specifies the scope of a dictionary.",
Expand Down
5 changes: 2 additions & 3 deletions packages/cspell-types/cspell.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@
"type": "object"
},
"CustomDictionaryPath": {
"description": "A File System Path to a dictionary file.",
"pattern": "^.*\\.txt$",
"type": "string"
"$ref": "#/definitions/FsPath",
"description": "A File System Path to a dictionary file."
},
"CustomDictionaryScope": {
"description": "Specifies the scope of a dictionary.",
Expand Down
3 changes: 1 addition & 2 deletions packages/cspell-types/src/CSpellSettingsDef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,8 @@ export type DictionaryPath = string;

/**
* A File System Path to a dictionary file.
* @pattern ^.*\.txt$
*/
export type CustomDictionaryPath = string;
export type CustomDictionaryPath = FsPath;

export interface RegExpPatternDefinition {
/**
Expand Down

0 comments on commit ee706be

Please sign in to comment.