Skip to content

Test run emits warning about 'api.vitest.experimental.ignoreFsModuleCache' #836

Open

Description

@BePo65

Describe the bug

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

Activity

  1. PhoenixB commented on Nov 8, 2026

    @PhoenixB

    Root cause, in case it helps the fix:

    The key is set in packages/worker/src/index.ts (lines 128-134 on main, still present in the latest release v1.52.2):

    api: {
      vitest: {
        experimental: {
          ignoreFsModuleCache: true,
        },
      },
    },

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions