Skip to content

Commit 509fa2d

Browse files
Jeyfeljflbr
authored andcommitted
Fix VS Code test configuration
- Remove preLaunchTask to fix npm PATH issues with nvm - Add compile task configuration - Allow tests to run without pre-compilation task
1 parent 704091b commit 509fa2d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.vscode/launch.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
],
1616
"outFiles": [
1717
"${workspaceFolder}/out/**/*.js"
18-
],
19-
"preLaunchTask": "npm: watch"
18+
]
2019
},
2120
{
2221
"name": "Extension Tests",
@@ -29,8 +28,7 @@
2928
],
3029
"outFiles": [
3130
"${workspaceFolder}/out/test/**/*.js"
32-
],
33-
"preLaunchTask": "npm: watch"
31+
]
3432
}
3533
]
3634
}

.vscode/tasks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"kind": "build",
1616
"isDefault": true
1717
}
18+
},
19+
{
20+
"type": "npm",
21+
"script": "compile",
22+
"problemMatcher": "$tsc",
23+
"group": "build"
1824
}
1925
]
2026
}

0 commit comments

Comments
 (0)