Extension side is requesting rpc.getFiles(".../vitest.workspace.ts"), but worker side had vitestById = { ".../vitest.config.ts": Vitest } due to getId picking up root config instead of workspace config.
This was leading to a following undefined error since vitestById[".../vitest.workspace.ts"] === undefined:
2024-03-25 13:38:19.276 [error] TypeError: Cannot read properties of undefined (reading 'server')
at getId (/home/hiroshi/code/others/vitest-vscode/dist/worker.js:925:20)
at globTestFiles (/home/hiroshi/code/others/vitest-vscode/dist/worker.js:949:27)
at Proxy.getFiles (/home/hiroshi/code/others/vitest-vscode/dist/worker.js:995:27)
test plan
I manually tested on samples/monorepo-vitest-workspace.
Extension side is requesting
rpc.getFiles(".../vitest.workspace.ts")
, but worker side hadvitestById = { ".../vitest.config.ts": Vitest }
due togetId
picking up root config instead of workspace config.This was leading to a following
undefined
error sincevitestById[".../vitest.workspace.ts"] === undefined
:test plan
I manually tested on
samples/monorepo-vitest-workspace
.