Skip to content

Commit

Permalink
fix: ignore any d.ts file when searching for config
Browse files Browse the repository at this point in the history
Fixes #429
  • Loading branch information
sheremet-va committed Jul 4, 2024
1 parent 0329824 commit 49cc3ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"vitest.configSearchPatternExclude": {
"markdownDescription": "A VSCode [glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns) to exclude files from the search for Vitest config files. This pattern affects both workspace and regular config files.",
"type": "string",
"default": "{**/node_modules/**,**/.*/**,*.d.ts}",
"default": "{**/node_modules/**,**/.*/**,**/*.d.ts}",
"scope": "window"
},
"vitest.debuggerAddress": {
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function getConfig(workspaceFolder?: WorkspaceFolder) {
const workspaceConfig = get<string | undefined>('workspaceConfig')
const rootConfigFile = get<string | undefined>('rootConfig')

const configSearchPatternExclude = get<string>('configSearchPatternExclude', '{**/node_modules/**,**/.*/**,*.d.ts}')!
const configSearchPatternExclude = get<string>('configSearchPatternExclude', '{**/node_modules/**,**/.*/**,**/*.d.ts}')!

const vitestPackagePath = get<string | undefined>('vitestPackagePath')
const resolvedVitestPackagePath = workspaceFolder && vitestPackagePath
Expand Down

0 comments on commit 49cc3ef

Please sign in to comment.