chore(vscode): background Launch Backend + Debug Backend auto start/stop

This commit is contained in:
2026-08-29 16:01:10 +01:00
parent 136d848a57
commit c3a6ca1def
2 changed files with 38 additions and 1 deletions
+24
View File
@@ -1,6 +1,30 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"name": "Debug Backend",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 2346,
"host": "127.0.0.1",
"debugAdapter": "legacy",
"substitutePath": [
{
"from": "${workspaceFolder}/src",
"to": "/app"
}
],
"cwd": "${workspaceFolder}/src",
"showLog": true,
"preLaunchTask": "Launch Backend",
"postDebugTask": "Stop Backend",
"presentation": {
"hidden": false,
"group": "KeepNote",
"order": 0
}
},
{ {
"name": "Attach to KeepNote (Air)", "name": "Attach to KeepNote (Air)",
"type": "go", "type": "go",
+14 -1
View File
@@ -4,7 +4,20 @@
{ {
"label": "Launch Backend", "label": "Launch Backend",
"type": "shell", "type": "shell",
"command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate", "command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate && until nc -z 127.0.0.1 2346 >/dev/null 2>&1; do sleep 1; done && echo DAE_BACKEND_READY",
"isBackground": true,
"problemMatcher": [
{
"pattern": {
"regexp": "^.*$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "DAE_BACKEND_READY"
}
}
],
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "shared" "panel": "shared"