Skip to content

Commit 1b8d477

Browse files
authored
feat: enable experimentalStaticAstCollect by default to reduce memory consumption (#620)
1 parent 2557d98 commit 1b8d477

File tree

4 files changed

+1563
-1725
lines changed

4 files changed

+1563
-1725
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ These options are resolved relative to the [workspace file](https://code.visuals
9696
- `vitest.debugOutFiles`: If source maps are enabled, these glob patterns specify the generated JavaScript files. If a pattern starts with `!` the files are excluded. If not specified, the generated code is expected in the same directory as its source. Default: `["${workspaceFolder}/**/*.(m|c|)js", "!**/node_modules/**"]`
9797
- `vitest.maximumConfigs`: The maximum amount of configs that Vitest extension can load. If exceeded, the extension will show a warning suggesting to use a workspace config file. Default: `3`
9898
- `vitest.logLevel`: How verbose should the logger be in the "Output" channel. Default: `info`
99+
- `vitest.experimentalStaticAstCollect`: uses AST parses to collect tests instead of running files and collecting them at runtime. Default: `true`
99100

100101
### Commands
101102

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
"vitest.experimentalStaticAstCollect": {
228228
"markdownDescription": "Enable static AST analysis for faster test discovery. This feature is experimental and may not work with all projects.",
229229
"type": "boolean",
230-
"default": false,
230+
"default": true,
231231
"scope": "resource"
232232
},
233233
"vitest.cliArguments": {

0 commit comments

Comments
 (0)