chore(vscode): unify Launch/Follow/Stop Backend tasks; Delve on 2346

This commit is contained in:
2026-08-29 15:31:55 +01:00
parent edd62b9f0e
commit 136d848a57
3 changed files with 17 additions and 50 deletions
+1 -31
View File
@@ -6,7 +6,7 @@
"type": "go", "type": "go",
"request": "attach", "request": "attach",
"mode": "remote", "mode": "remote",
"port": 2345, "port": 2346,
"host": "127.0.0.1", "host": "127.0.0.1",
"debugAdapter": "legacy", "debugAdapter": "legacy",
"substitutePath": [ "substitutePath": [
@@ -17,41 +17,11 @@
], ],
"cwd": "${workspaceFolder}/src", "cwd": "${workspaceFolder}/src",
"showLog": true, "showLog": true,
// "trace": "verbose",
"presentation": { "presentation": {
"hidden": false, "hidden": false,
"group": "KeepNote", "group": "KeepNote",
"order": 1 "order": 1
} }
},
{
"name": "Launch browser",
"type": "editor-browser",
"request": "launch",
"url": "http://localhost:7000",
"presentation": {
"hidden": true,
"group": "",
"order": 1
}
},
{
"name": "Launch dev server (python)",
"type": "debugpy",
"module": "http.server",
"args": ["7000", "-d", "${workspaceFolder:KeepNote}/dev/"],
"request": "launch",
"presentation": {
"hidden": true,
"group": "",
"order": 1
}
}
],
"compounds": [
{
"name": "Launch Debug Dev UI",
"configurations": ["Launch dev server (python)", "Launch browser"]
} }
] ]
} }
+12 -16
View File
@@ -2,29 +2,25 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Start KeepNote Environment", "label": "Launch Backend",
"type": "shell", "type": "shell",
"command": "docker compose -f docker-compose.debug.yaml up --build", "command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate",
"isBackground": true,
"problemMatcher": [
{
"pattern": {
"regexp": "^.*$"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Building",
"endsPattern": " ✔ Container"
}
}
],
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "shared" "panel": "shared"
} }
}, },
{ {
"label": "Stop KeepNote Environment", "label": "Follow Backend Logs",
"type": "shell",
"command": "docker compose -f docker-compose.debug.yaml logs -f",
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "Stop Backend",
"type": "shell", "type": "shell",
"command": "docker compose -f docker-compose.debug.yaml down", "command": "docker compose -f docker-compose.debug.yaml down",
"presentation": { "presentation": {
+4 -3
View File
@@ -22,9 +22,10 @@ services:
# Expose ports: host:container # Expose ports: host:container
ports: ports:
- "8081:8080" # Application port - "8081:8080" # Application port
# Delve: no host port — auth-debug owns 2345; attach via the container's # Delve: unique host port per service (auth-debug owns 2345), so the Go
# 2345 when needed. # attach launch config reaches Air's Delve listener (in-container 2345)
# - "8081:8081" # HTTP Dev interface # from the host without conflicts.
- "2346:2345" # Delve debugger port
# Volume mounts - THE KEY TO HOT RELOADING # Volume mounts - THE KEY TO HOT RELOADING