Skip to content

Commit

Permalink
fix: no uppercase path allowed for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
YPetremann authored and zxch3n committed Jul 23, 2022
1 parent 50fb162 commit f688bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ export class TestWatcher extends Disposable {

function parseLocationFromStack(testItem: TestItem, stack: string | undefined): DebuggerLocation | undefined {
const lines = stack?.split('\n') || []
const target = testItem.uri!.fsPath.toLowerCase()
const target = testItem.uri!.fsPath
for (const line of lines) {
const frame = stackUtils.parseLine(line)
if (!frame || !frame.file || !frame.line || !frame.column)
continue
frame.file = frame.file.replace(/\//g, path.sep).toLowerCase()
frame.file = frame.file.replace(/\//g, path.sep)
if (target === frame.file) {
return {
path: frame.file,
Expand Down

0 comments on commit f688bb5

Please sign in to comment.