Skip to content

Commit 62294a9

Browse files
Start gulp watch before launching the extension for debugging (#17943)
* Speed up launch extension for debugging * Revert "Speed up launch extension for debugging" This reverts commit 79c2b7e. * Doesn't unnecessarily build to launch ext. * Clean up * Watch and launch extension * Replace pattern with base * Remove unneeded quick-build gulp task
1 parent 84d52c1 commit 62294a9

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"outFiles": [
3333
"${workspaceRoot}/out/src/**/*.js",
3434
],
35-
"preLaunchTask": "build",
35+
"preLaunchTask": "watch",
3636
"env": {
3737
// Uncomment this to use a specified version of STS, see
3838
// https://github.com/microsoft/vscode-mssql/blob/main/DEVELOPMENT.md#using-mssql_sqltoolsservice-environment-variable
@@ -55,7 +55,7 @@
5555
"outFiles": [
5656
"${workspaceRoot}/out/src/**/*.js",
5757
],
58-
"preLaunchTask": "build",
58+
"preLaunchTask": "watch",
5959
"env": {
6060
// Uncomment this to use a specified version of STS, see
6161
// https://github.com/microsoft/vscode-mssql/blob/main/DEVELOPMENT.md#using-mssql_sqltoolsservice-environment-variable

.vscode/tasks.json

+24
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,30 @@
2121
"isDefault": false
2222
}
2323
},
24+
{
25+
"label": "watch",
26+
"type": "gulp",
27+
"task": "watch",
28+
"isBackground": true,
29+
"problemMatcher": [
30+
"$lessCompile",
31+
"$tsc",
32+
"$jshint",
33+
{
34+
"owner": "custom",
35+
"base": "$tsc",
36+
"background": {
37+
"activeOnStart": true,
38+
"beginsPattern": "Starting 'watch'...",
39+
"endsPattern": "Starting 'watch-reactviews'...",
40+
}
41+
}
42+
],
43+
"group": {
44+
"_id": "watch",
45+
"isDefault": false
46+
}
47+
},
2448
{
2549
"type": "npm",
2650
"script": "lint",

0 commit comments

Comments
 (0)