From b3e0e1671ee5648dc75cc4896e6156866f6b4589 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Thu, 14 May 2020 17:09:43 +0000 Subject: [PATCH 1/2] Add more useful launch configurations --- .vscode/launch.json | 48 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9beb418df..46dd438d7 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": "PowerShell Run current Pester File", + "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", @@ -27,4 +53,4 @@ "processId": "${command:pickProcess}" } ] -} +} \ No newline at end of file From e35a36327c78586c081f43070d4b2ee36eb6fe40 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Tue, 26 May 2020 21:35:18 +0100 Subject: [PATCH 2/2] Update .vscode/launch.json --- .vscode/launch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 46dd438d7..2f8776e19 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -26,7 +26,7 @@ { "type": "PowerShell", "request": "launch", - "name": "PowerShell Run current Pester File", + "name": "Run current Pester file with PSScriptAnalyzer development build", "script": "Import-Module ./out/PSScriptAnalyzer/*/PSScriptAnalyzer.psd1; Invoke-Pester -Path '${file}'; $PID", "args": [ "" @@ -53,4 +53,4 @@ "processId": "${command:pickProcess}" } ] -} \ No newline at end of file +}