Skip to content

Commit 3c9e2f8

Browse files
authored
Improve launch configuration (#1336)
Cleans up `.vscode/launch.json` and associated files in order to make extension launch more quickly during local development ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent f90f496 commit 3c9e2f8

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
4-
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"esbenp.prettier-vscode",
7+
"connor4312.esbuild-problem-matchers"
8+
]
59
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"--profile=cursorlessDevelopment"
1515
],
1616
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
17-
"preLaunchTask": "${defaultBuildTask}",
17+
"preLaunchTask": "Build extension only",
1818
"resolveSourceMapLocations": [
1919
"${workspaceFolder}/**",
2020
"!**/node_modules/**"

.vscode/tasks.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@
55
"tasks": [
66
{
77
"label": "Build",
8-
"dependsOn": ["Populate dist"],
8+
"dependsOn": ["Populate dist", "ESBuild", "TSBuild"],
99
"group": {
1010
"kind": "build",
1111
"isDefault": true
1212
}
1313
},
14+
{
15+
"label": "Build extension only",
16+
"dependsOn": ["Populate dist", "ESBuild"],
17+
"group": "build"
18+
},
1419
{
1520
"label": "ESBuild",
1621
"type": "npm",
1722
"script": "esbuild",
18-
"dependsOn": ["TSBuild"],
1923
"path": "packages/cursorless-vscode",
20-
"isBackground": true,
24+
"problemMatcher": "$esbuild",
2125
"presentation": {
2226
"reveal": "never"
2327
},
@@ -27,8 +31,7 @@
2731
"label": "TSBuild",
2832
"type": "npm",
2933
"script": "compile",
30-
"problemMatcher": "$tsc-watch",
31-
"isBackground": true,
34+
"problemMatcher": "$tsc",
3235
"presentation": {
3336
"reveal": "never"
3437
},
@@ -38,9 +41,7 @@
3841
"label": "Populate dist",
3942
"type": "npm",
4043
"script": "populate-dist",
41-
"dependsOn": ["ESBuild"],
4244
"path": "packages/cursorless-vscode",
43-
"isBackground": true,
4445
"presentation": {
4546
"reveal": "never"
4647
},

0 commit comments

Comments
 (0)