Describe the bug
When attempting to debug a test using the Vitest VS Code extension, the following error is thrown:
Error: Vitest failed to find the current suite. This is a bug in Vitest. Please, open an issue with reproduction.
Reproduction
https://github.com/edumserrano/vitest-bug-failed-to-find-current-suite
System Info
System:
OS: Windows 11 10.0.26200
CPU: (16) x64 AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 27.06 GB / 63.16 GB
Binaries:
Node: 24.11.1 - C:\Program Files\nodejs\node.EXE
npm: 11.6.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 142.0.7444.176
Edge: Chromium (140.0.3485.54)
Firefox: 142.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
Internet Explorer: 11.0.26100.1882
npmPackages:
vitest: ^4.0.14 => 4.0.14
Used Package Manager
npm
Validations
Describe the bug
When attempting to debug a test using the Vitest VS Code extension, the following error is thrown:
Reproduction
https://github.com/edumserrano/vitest-bug-failed-to-find-current-suite
System Info
System: OS: Windows 11 10.0.26200 CPU: (16) x64 AMD Ryzen 7 7800X3D 8-Core Processor Memory: 27.06 GB / 63.16 GB Binaries: Node: 24.11.1 - C:\Program Files\nodejs\node.EXE npm: 11.6.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 142.0.7444.176 Edge: Chromium (140.0.3485.54) Firefox: 142.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe Internet Explorer: 11.0.26100.1882 npmPackages: vitest: ^4.0.14 => 4.0.14Used Package Manager
npm
Validations