{ "version": "2.0.0", "tasks": [ { "label": "NX Post Support: Compile Debug", "type": "process", "command": "powershell.exe", "args": [ "-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "& { param([string]$WorkspaceRoot, [string]$DebugRoot); $scriptRoot = $WorkspaceRoot; if ($scriptRoot.StartsWith('\\\\?\\')) { $scriptRoot = $scriptRoot.Substring(4) }; & (Join-Path $scriptRoot '.vscode\\prepare-debug.ps1') -WorkspaceRoot $WorkspaceRoot -DebugRoot $DebugRoot; exit $LASTEXITCODE }", "${workspaceFolder}", "${env:TEMP}\\nx-post-support-vscode-debug" ], "linux": { "command": "npm", "args": ["run", "compile:debug"], "options": { "cwd": "${workspaceFolder}" } }, "problemMatcher": [], "presentation": { "reveal": "always", "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" } } ] }