Skip to content

Commit 407576d

Browse files
committed
refactor: update launch and task configurations for improved build process
1 parent ea0225b commit 407576d

File tree

2 files changed

+7
-45
lines changed

2 files changed

+7
-45
lines changed

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"outFiles": [
1616
"${workspaceFolder}/dist/**/*.js"
1717
],
18-
"preLaunchTask": "watch",
19-
"postDebugTask": "stop watch tasks"
18+
"preLaunchTask": "${defaultBuildTask}"
2019
}
2120
]
2221
}

.vscode/tasks.json

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{
77
"label": "watch",
88
"dependsOn": [
9-
"npm: watch:esbuild",
10-
"npm: watch:webview"
9+
"npm: watch:tsc",
10+
"npm: watch:esbuild"
1111
],
1212
"presentation": {
1313
"reveal": "never"
@@ -31,35 +31,11 @@
3131
},
3232
{
3333
"type": "npm",
34-
"script": "watch:esbuild",
34+
"script": "watch:tsc",
3535
"group": "build",
36-
"problemMatcher": "$esbuild-watch",
36+
"problemMatcher": "$tsc-watch",
3737
"isBackground": true,
38-
"label": "npm: watch:esbuild",
39-
"presentation": {
40-
"group": "watch",
41-
"reveal": "never"
42-
}
43-
},
44-
{
45-
"type": "npm",
46-
"script": "watch:webview",
47-
"group": "build",
48-
"problemMatcher": {
49-
"pattern": {
50-
"regexp": ".",
51-
"file": 1,
52-
"location": 2,
53-
"message": 3
54-
},
55-
"background": {
56-
"activeOnStart": true,
57-
"beginsPattern": "^\\s*VITE v",
58-
"endsPattern": "\\s*➜\\s*Local:\\s*http://localhost:\\d+"
59-
}
60-
},
61-
"isBackground": true,
62-
"label": "npm: watch:webview",
38+
"label": "npm: watch:tsc",
6339
"presentation": {
6440
"group": "watch",
6541
"reveal": "never"
@@ -83,19 +59,6 @@
8359
"npm: watch-tests"
8460
],
8561
"problemMatcher": []
86-
},
87-
{
88-
"label": "stop watch tasks",
89-
"type": "shell",
90-
"command": "bash",
91-
"args": [
92-
"-lc",
93-
"pkill -f \"node esbuild.js --watch\" >/dev/null 2>&1 || true; pkill -f \"vite\" >/dev/null 2>&1 || true"
94-
],
95-
"problemMatcher": [],
96-
"presentation": {
97-
"reveal": "never"
98-
}
9962
}
10063
]
101-
}
64+
}

0 commit comments

Comments
 (0)