You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test run emits warning about 'api.vitest.experimental.ignoreFsModuleCache' #836
When running tests in VsCode using this extension I get the following warning:
DEPRECATED The plugin "vitest:vscode-extension" sets `api.vitest.experimental.ignoreFsModuleCache`, which is deprecated. Use `api.vitest.ignoreFsModuleCache` instead.
The tests are running without problems.
I cannot find a setting in VsCode named 'ignoreFsModuleCache'. Am I doing
Expected behavior
No DEPRECATED warning
Reproduction
Just run a single test or a group of tests or all tests.
Output
DEPRECATED The plugin "vitest:vscode-extension" sets `api.vitest.experimental.ignoreFsModuleCache`, which is deprecated. Use `api.vitest.ignoreFsModuleCache` instead.
Extension Version
1.52.2
Vitest Version
5.0.5
Validations
Check that you are using the latest version of the extension
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Vitest 5 (node_modules/vitest/dist/chunks/cli-api.*.js) checks api.vitest.ignoreFsModuleCache first and only falls back to api.vitest.experimental.ignoreFsModuleCache with the deprecation warning. Switching the worker to api: { vitest: { ignoreFsModuleCache: true } } should silence it while keeping the same behaviour.
Note that the warning is emitted by the extension's injected plugin, not by user config, so it cannot be silenced from a project's vitest.config.ts.
Activity
PhoenixB commentedon Nov 8, 2026
Root cause, in case it helps the fix:
The key is set in
packages/worker/src/index.ts(lines 128-134 onmain, still present in the latest release v1.52.2):Vitest 5 (
node_modules/vitest/dist/chunks/cli-api.*.js) checksapi.vitest.ignoreFsModuleCachefirst and only falls back toapi.vitest.experimental.ignoreFsModuleCachewith the deprecation warning. Switching the worker toapi: { vitest: { ignoreFsModuleCache: true } }should silence it while keeping the same behaviour.Note that the warning is emitted by the extension's injected plugin, not by user config, so it cannot be silenced from a project's
vitest.config.ts.