Skip to content

Commit 01c2e27

Browse files
committed
[core] Adjust launch.json for VS Code
This commit removes the ".env" configuration in the VS Code launch.json for the Go commands, so that we can run the command only with a "config.yaml" file in the root folder. This also adjusts the "app" command so that we can debug the React app via VS Code and the Chrome Debugger.
1 parent 0965f3f commit 01c2e27

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.vscode/launch.json

+5-16
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
"request": "launch",
88
"mode": "debug",
99
"program": "${workspaceFolder}/cmd/kobs",
10-
"args": [
10+
"args": [
1111
"hub",
1212
"--config",
1313
"../../config.yaml"
14-
],
15-
"envFile": ".env"
14+
]
1615
},
1716
{
1817
"name": "cluster",
@@ -24,8 +23,7 @@
2423
"cluster",
2524
"--config",
2625
"../../config.yaml"
27-
],
28-
"envFile": ".env"
26+
]
2927
},
3028
{
3129
"name": "watcher",
@@ -37,23 +35,14 @@
3735
"watcher",
3836
"--config",
3937
"../../config.yaml"
40-
],
41-
"envFile": ".env"
38+
]
4239
},
4340
{
4441
"name": "app",
4542
"type": "chrome",
4643
"request": "launch",
4744
"url": "http://localhost:3000",
48-
"webRoot": "${workspaceFolder}/plugins/app",
49-
"sourceMaps": true
50-
},
51-
{
52-
"name": "plugin",
53-
"type": "chrome",
54-
"request": "launch",
55-
"url": "http://localhost:3001",
56-
"webRoot": "${workspaceFolder}/plugins",
45+
"webRoot": "${workspaceFolder}/app/packages/app",
5746
"sourceMaps": true
5847
}
5948
]

0 commit comments

Comments
 (0)