Skip to content

Commit 82a91e6

Browse files
committed
Use pnpm in vscode tasks/lanuch
1 parent f7e78bb commit 82a91e6

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"--extensionDevelopmentPath=${workspaceFolder}/packages/extension"
3030
],
3131
"outFiles": ["${workspaceRoot}/packages/extension/dist/**"],
32-
"preLaunchTask": "npm: watch"
32+
"preLaunchTask": "pnpm: watch"
3333
},
3434
{
3535
"type": "node",

.vscode/tasks.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "npm",
8-
"script": "watch",
7+
"type": "shell",
8+
"command": "pnpm",
9+
"args": ["run", "watch"],
10+
"options": {
11+
"cwd": "${workspaceFolder}/packages/extension"
12+
},
913
"problemMatcher": "$tsc-watch",
10-
"path": "packages/extension",
1114
"isBackground": true,
1215
"presentation": {
1316
"reveal": "never",
@@ -16,12 +19,16 @@
1619
"group": {
1720
"kind": "build",
1821
"isDefault": true
19-
}
22+
},
23+
"label": "pnpm: watch"
2024
},
2125
{
22-
"type": "npm",
23-
"script": "build:test",
24-
"path": "packages/extension",
26+
"type": "shell",
27+
"command": "pnpm",
28+
"args": ["run", "build:test"],
29+
"options": {
30+
"cwd": "${workspaceFolder}/packages/extension"
31+
},
2532
"group": "build",
2633
"problemMatcher": [],
2734
"label": "build-extension-integration-tests"

0 commit comments

Comments
 (0)