diff --git a/.vscode/launch.json b/.vscode/launch.json index 9beb418df..2f8776e19 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,18 +1,44 @@ { "version": "0.2.0", "configurations": [ - { - "name": ".NET Core Launch (console)", - "type": "coreclr", + "type": "PowerShell", + "request": "launch", + "name": "Build", + "script": "./build.ps1", + "args": [ + "" + ], + "cwd": "${workspaceFolder}", + "createTemporaryIntegratedConsole": true + }, + { + "type": "PowerShell", + "request": "launch", + "name": "Build & Run all tests", + "script": "./build.ps1; ./build.ps1 -Test", + "args": [ + "" + ], + "cwd": "${workspaceFolder}", + "createTemporaryIntegratedConsole": true + }, + { + "type": "PowerShell", "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceRoot}/bin/Debug//", - "args": [], - "cwd": "${workspaceRoot}", - "externalConsole": false, - "stopAtEntry": false, - "internalConsoleOptions": "openOnSessionStart" + "name": "Run current Pester file with PSScriptAnalyzer development build", + "script": "Import-Module ./out/PSScriptAnalyzer/*/PSScriptAnalyzer.psd1; Invoke-Pester -Path '${file}'; $PID", + "args": [ + "" + ], + "cwd": "${workspaceFolder}", + "createTemporaryIntegratedConsole": true + }, + { + "name": "PowerShell Attach to Host Process", + "type": "PowerShell", + "request": "attach", + "runspaceId": 1 }, { "name": ".NET Core Attach",