Skip to content

Commit

Permalink
fix: debugging on windows (#23)
Browse files Browse the repository at this point in the history
* fix debugging on windows

* version bump

Co-authored-by: Almar Aubel <a.aubel@surebusiness.nl>
  • Loading branch information
AlmarAubel and Almar Aubel authored Apr 23, 2022
1 parent 635a9be commit 36fea6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 36fea6d

Please sign in to comment.