diff --git a/package.json b/package.json index 48f02c7a..8413e5f5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vitest-explorer", "displayName": "Vitest", "description": "Run and debug Vitest test cases", - "version": "0.1.18", + "version": "0.1.19", "icon": "img/icon.png", "preview": true, "author": "zxch3n", diff --git a/src/runHandler.ts b/src/runHandler.ts index d6506ee8..d503e617 100644 --- a/src/runHandler.ts +++ b/src/runHandler.ts @@ -125,7 +125,9 @@ async function runTest( let windowsPath = file.uri!.fsPath.replace(/\\/g, "/"); // vscode sends path with lowercase for drive, but tests report with uppercase // so there are no matches unless this is adjusted - windowsPath = windowsPath.charAt(0).toUpperCase() + windowsPath.slice(1); + if(!isDebug) { + windowsPath = windowsPath.charAt(0).toUpperCase() + windowsPath.slice(1); + } pathToFile.set(windowsPath, file); } }