Skip to content

Commit 473bda5

Browse files
authored
fix: Support .cspell prefix on YAML config files. (#4727)
1 parent 9270d0c commit 473bda5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/cspell-lib/src/lib/Settings/Controller/configLoader/configLoader.ts

+6
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,16 @@ const searchPlaces = Object.freeze([
7474
'.vscode/cSpell.json',
7575
'.vscode/.cspell.json',
7676
// Standard Locations
77+
'.cspell.config.json',
78+
'.cspell.config.jsonc',
79+
'.cspell.config.yaml',
80+
'.cspell.config.yml',
7781
'cspell.config.json',
7882
'cspell.config.jsonc',
7983
'cspell.config.yaml',
8084
'cspell.config.yml',
85+
'.cspell.yaml',
86+
'.cspell.yml',
8187
'cspell.yaml',
8288
'cspell.yml',
8389
// Dynamic config is looked for last

packages/cspell-lib/src/lib/__snapshots__/index.test.ts.snap

+6
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,16 @@ exports[`Validate the cspell API > Verify API exports 1`] = `
166166
".vscode/cspell.json",
167167
".vscode/cSpell.json",
168168
".vscode/.cspell.json",
169+
".cspell.config.json",
170+
".cspell.config.jsonc",
171+
".cspell.config.yaml",
172+
".cspell.config.yml",
169173
"cspell.config.json",
170174
"cspell.config.jsonc",
171175
"cspell.config.yaml",
172176
"cspell.config.yml",
177+
".cspell.yaml",
178+
".cspell.yml",
173179
"cspell.yaml",
174180
"cspell.yml",
175181
"cspell.config.js",

0 commit comments

Comments
 (0)