Skip to content

Commit 3f9b667

Browse files
authored
Merge pull request RooCodeInc#759 from samhvw8/feat/make-easy-to-run-debug-mode
feat: make easy to run debug mode
2 parents 6da0559 + 51f5f10 commit 3f9b667

File tree

2 files changed

+47
-29
lines changed

2 files changed

+47
-29
lines changed

.vscode/launch.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"type": "extensionHost",
1111
"request": "launch",
1212
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}",
15-
],
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1614
"sourceMaps": true,
1715
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
18-
"preLaunchTask": "compile",
16+
"preLaunchTask": "debug-mode",
1917
"env": {
2018
"NODE_ENV": "development",
2119
"VSCODE_DEBUG_MODE": "true"
2220
},
23-
"resolveSourceMapLocations": [
24-
"${workspaceFolder}/**",
25-
"!**/node_modules/**"
26-
]
27-
},
21+
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
22+
"presentation": {
23+
"hidden": false,
24+
"group": "tasks",
25+
"order": 1
26+
}
27+
}
2828
]
2929
}

.vscode/tasks.json

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"label": "compile",
88
"type": "npm",
99
"script": "compile",
10-
"dependsOn": ["npm: build:webview"],
1110
"group": {
1211
"kind": "build",
1312
"isDefault": true
@@ -30,56 +29,75 @@
3029
}
3130
},
3231
{
32+
"label": "debug-mode",
33+
"dependsOn": ["compile", "npm: dev"],
34+
"group": {
35+
"kind": "build",
36+
"isDefault": false
37+
},
38+
"dependsOrder": "parallel",
39+
"presentation": {
40+
"reveal": "always",
41+
"panel": "new"
42+
}
43+
},
44+
{
45+
"label": "npm: dev",
3346
"type": "npm",
34-
"script": "build:webview",
47+
"script": "dev",
3548
"group": "build",
36-
"problemMatcher": [],
49+
"problemMatcher": {
50+
"owner": "vite",
51+
"pattern": {
52+
"regexp": "^$"
53+
},
54+
"background": {
55+
"activeOnStart": true,
56+
"beginsPattern": ".*VITE.*",
57+
"endsPattern": ".*Local:.*"
58+
}
59+
},
3760
"isBackground": true,
38-
"label": "npm: build:webview",
3961
"presentation": {
4062
"group": "watch",
4163
"reveal": "never"
4264
}
4365
},
4466
{
67+
"label": "npm: build:webview",
4568
"type": "npm",
46-
"script": "watch:esbuild",
69+
"script": "build:webview",
4770
"group": "build",
48-
"problemMatcher": "$esbuild-watch",
71+
"problemMatcher": [],
4972
"isBackground": true,
50-
"label": "npm: watch:esbuild",
5173
"presentation": {
5274
"group": "watch",
5375
"reveal": "never"
5476
}
5577
},
5678
{
79+
"label": "npm: watch:esbuild",
5780
"type": "npm",
58-
"script": "watch:tsc",
81+
"script": "watch:esbuild",
5982
"group": "build",
60-
"problemMatcher": "$tsc-watch",
83+
"problemMatcher": "$esbuild-watch",
6184
"isBackground": true,
62-
"label": "npm: watch:tsc",
6385
"presentation": {
6486
"group": "watch",
6587
"reveal": "never"
6688
}
6789
},
6890
{
91+
"label": "npm: watch:tsc",
6992
"type": "npm",
70-
"script": "watch-tests",
93+
"script": "watch:tsc",
94+
"group": "build",
7195
"problemMatcher": "$tsc-watch",
7296
"isBackground": true,
7397
"presentation": {
74-
"reveal": "never",
75-
"group": "watchers"
76-
},
77-
"group": "build"
78-
},
79-
{
80-
"label": "tasks: watch-tests",
81-
"dependsOn": ["npm: watch", "npm: watch-tests"],
82-
"problemMatcher": []
98+
"group": "watch",
99+
"reveal": "never"
100+
}
83101
}
84102
]
85103
}

0 commit comments

Comments
 (0)