diff --git a/src/client/testing/common/services/discoveredTestParser.ts b/src/client/testing/common/services/discoveredTestParser.ts index 971dc25f789a4..226da0a23451d 100644 --- a/src/client/testing/common/services/discoveredTestParser.ts +++ b/src/client/testing/common/services/discoveredTestParser.ts @@ -39,6 +39,11 @@ export class TestDiscoveredTestParser implements discovery.ITestDiscoveredTestPa } for (const data of discoveredTests) { + // Fixes #8627 - Codelens does not open dropdown for parametrized tests. + if (process.platform === 'win32') { + const [driveLetter, ...rest] = data.root.split(path.sep); + data.root = [driveLetter.toLowerCase()].concat(...rest).join(path.sep); + } const rootFolder = { name: data.root, folders: [],