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
vscode.window.showWarningMessage(`Vitest not found in "${basename(dirname(configOrWorkspaceFile.fsPath))}" folder. Please run \`npm i --save-dev vitest\` to install Vitest.'`)
I do not always use Vitest for various reasons, so I should be able to disable this warning with a setting like vitest.warnIfNotInstalled = false. A button on the warning like "Don't remind me again" could set this setting.
Reproduction
Open any project that uses Vite but does not use Vitest
Output
[INFO 13:50:07] [v0.10.7] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[Error 13:50:07] [API] Vitest not found for file:///Users/*/projects/*/vite.config.ts.
[Error 13:50:07] [API] Failed to start Vitest: No vitest config files found
Version
0.10.7
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.
I don't think it makes sense to have an option to do that, but we should ignore the warning automatically if there is no Vitest config/vitest in package.json dependencies
Describe the bug
Vitest shows a warning every time I open a project that uses Vite but does not use Vitest.
vscode/src/api/pkg.ts
Line 41 in 49d8e83
I do not always use Vitest for various reasons, so I should be able to disable this warning with a setting like
vitest.warnIfNotInstalled = false
. A button on the warning like "Don't remind me again" could set this setting.Reproduction
Open any project that uses Vite but does not use Vitest
Output
Version
0.10.7
Validations
The text was updated successfully, but these errors were encountered: