If you try to debug a test using the sidebar icon, the working directory is set to 'sourceDir' if 'test.workDir' is not available: https://github.com/mesonbuild/vscode-meson/blob/af5d9fcd06669bc89c6fc682bc17d719b6768fae/src/tests.ts#L281 However, Tasks.ts uses 'buildDir' as default working directory (as expected).