Skip to content

Commit c8d0479

Browse files
committed
chore: Add missing vscode config for launching the vscode integration.
1 parent 6ece678 commit c8d0479

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

Diff for: packages/@css-blocks/vscode/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
client/server
44
.vscode-test
55
*.tsbuildinfo
6+
!.vscode/

Diff for: packages/@css-blocks/vscode/.vscode/launch.json

+44
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}/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}/../language-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}/out/test",
33+
"${workspaceRoot}/testFixture"
34+
],
35+
"outFiles": ["${workspaceRoot}/out/test/**/*.js"]
36+
}
37+
],
38+
"compounds": [
39+
{
40+
"name": "Client + Server",
41+
"configurations": ["Launch Client", "Attach to Server"]
42+
}
43+
]
44+
}

Diff for: packages/@css-blocks/vscode/.vscode/tasks.json

+33
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)