From 4f11ed7ecfc3441f98882df2e62ba130d5b5defa Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Thu, 24 Sep 2026 07:53:15 +0200 Subject: [PATCH] chore(vscode): add Linux debug launch configurations and tasks, update lockfile --- .vscode/launch.json | 52 +++++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- 3 files changed, 95 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3083a79..5f47196 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -39,6 +39,48 @@ "autoAttachChildProcesses": true, "preLaunchTask": "NX Post Support: Compile Debug" }, + { + // Linux workaround: js-debug's extensionHost attach probes localhost and [::1] + // in parallel and aborts when [::1] is refused. Start the dev host ourselves + // with a fixed inspector port and attach directly to 127.0.0.1. + "name": "Run Extension (Linux)", + "type": "node", + "request": "attach", + "address": "127.0.0.1", + "port": 9333, + "timeout": 30000, + "continueOnAttach": true, + "sourceMaps": true, + "outFiles": ["${workspaceFolder}/dist/**/*.js"], + "resolveSourceMapLocations": [ + "${workspaceFolder}/dist/**/*.js", + "!**/node_modules/**" + ], + "skipFiles": ["/**"], + "preLaunchTask": "NX Post Support: Start Dev Host (Linux)" + }, + { + "name": "Debug Extension (Linux, hidden)", + "type": "node", + "request": "attach", + "address": "127.0.0.1", + "port": 9333, + "timeout": 30000, + "continueOnAttach": true, + "sourceMaps": true, + "outFiles": ["${workspaceFolder}/dist/**/*.js"], + "resolveSourceMapLocations": [ + "${workspaceFolder}/dist/**/*.js", + "!**/node_modules/**" + ], + "skipFiles": ["/**"], + "preLaunchTask": "NX Post Support: Start Dev Host with debugpy (Linux)", + "presentation": { + "hidden": true, + "group": "", + "order": 4 + } + }, { "name": "Python Attach", "type": "debugpy", @@ -118,6 +160,16 @@ "group": "", "order": 1 } + }, + { + "name": "Debug Extension and Python (Linux)", + "configurations": ["Python debug server (hidden)", "Debug Extension (Linux, hidden)"], + "stopAll": true, + "presentation": { + "hidden": false, + "group": "", + "order": 2 + } } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fb7f391..8d92b16 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -28,6 +28,47 @@ "panel": "dedicated", "clear": true } + }, + { + "label": "NX Post Support: Start Dev Host (Linux)", + "detail": "Opens the Extension Development Host with the inspector on 127.0.0.1:9333 (workaround for js-debug localhost/::1 attach bug).", + "type": "shell", + "command": "\"$(dirname \"${execPath}\")/bin/$(basename \"${execPath}\")\" --new-window --inspect-brk-extensions=9333 --extensionDevelopmentPath=\"${workspaceFolder}\" \"${workspaceFolder}\" \"${workspaceFolder}/test/postprocessor\"", + "options": { + "shell": { + "executable": "/bin/bash", + "args": ["-c"] + } + }, + "dependsOn": "NX Post Support: Compile Debug", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "panel": "dedicated" + } + }, + { + "label": "NX Post Support: Start Dev Host with debugpy (Linux)", + "detail": "Same as above, but the language server connects to the debugpy listener on 127.0.0.1:5678.", + "type": "shell", + "command": "\"$(dirname \"${execPath}\")/bin/$(basename \"${execPath}\")\" --new-window --inspect-brk-extensions=9333 --extensionDevelopmentPath=\"${workspaceFolder}\" \"${workspaceFolder}\" \"${workspaceFolder}/test/postprocessor\"", + "options": { + "shell": { + "executable": "/bin/bash", + "args": ["-c"] + }, + "env": { + "USE_DEBUGPY": "True", + "NXPS_DEBUG_HOST": "127.0.0.1", + "NXPS_DEBUG_PORT": "5678" + } + }, + "dependsOn": "NX Post Support: Compile Debug", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "panel": "dedicated" + } } ] } diff --git a/package-lock.json b/package-lock.json index 2678556..cd52e93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nx-post-support", - "version": "2026.8.201", + "version": "2026.9.501", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nx-post-support", - "version": "2026.8.201", + "version": "2026.9.501", "devDependencies": { "@types/vscode": "^1.96.0", "@vscode/vsce": "^3.2.1",