Skip to content

Commit 7e6bb37

Browse files
author
Keen Yee Liau
committed
Add vscode config for better dev workflow
1 parent ed4cbb2 commit 7e6bb37

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

.vscode/launch.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"name": "Launch Client",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
12+
"preLaunchTask": {
13+
"type": "npm",
14+
"script": "watch"
15+
}
16+
},
17+
{
18+
"type": "node",
19+
"request": "attach",
20+
"name": "Attach to Server",
21+
"port": 6009,
22+
"restart": true,
23+
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
24+
},
25+
{
26+
"name": "Language Server E2E Test",
27+
"type": "extensionHost",
28+
"request": "launch",
29+
"runtimeExecutable": "${execPath}",
30+
"args": [
31+
"--extensionDevelopmentPath=${workspaceRoot}",
32+
"--extensionTestsPath=${workspaceRoot}/client/out/test",
33+
"${workspaceRoot}/client/testFixture"
34+
],
35+
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
36+
}
37+
],
38+
"compounds": [
39+
{
40+
"name": "Client + Server",
41+
"configurations": ["Launch Client", "Attach to Server"]
42+
}
43+
]
44+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.insertSpaces": false,
3+
"tslint.enable": true,
4+
"typescript.tsc.autoDetect": "off",
5+
"typescript.preferences.quoteStyle": "single"
6+
}

.vscode/tasks.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "compile",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": [
13+
"$tsc"
14+
]
15+
},
16+
{
17+
"type": "npm",
18+
"script": "watch",
19+
"isBackground": true,
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"presentation": {
25+
"panel": "dedicated",
26+
"reveal": "never"
27+
},
28+
"problemMatcher": [
29+
"$tsc-watch"
30+
]
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)