From 15af5ba68f7e67acdade7ec836075d3f8b4a8e28 Mon Sep 17 00:00:00 2001 From: "Christian J. (TV)" <45047468+ChristianJ-TV@users.noreply.github.com> Date: Wed, 4 Oct 2023 21:10:09 +0200 Subject: [PATCH] Update launch.json --- .vscode/launch.json | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 16824b2..049e590 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,22 +1,20 @@ { - // See https://go.microsoft.com/fwlink/?linkid=830387 for the documentation about the launch.json format + // See https://go.microsoft.com/fwlink/?linkid=830387 for the documentation about the tasks.json format "version": "0.2.0", "configurations": [ { - "name": "Test (via Pester)", + "name": "Lint (via PSScriptAnalyzer)", "type": "PowerShell", "request": "launch", - "script": "Invoke-Pester", - "args": [ - "-Path '${workspaceFolder}' -Output Detailed" - ] + "script": "Invoke-ScriptAnalyzer -Path '${workspaceFolder}' -Recurse -Settings '${workspaceFolder}/Linters/PSScriptAnalyzer.psd1'", + "createTemporaryIntegratedConsole": true }, { - "name": "Run (via PowerShell)", + "name": "Test (via Pester)", "type": "PowerShell", "request": "launch", - "cwd": "${workspaceRoot}", - "args": [] + "script": "Invoke-Pester -Path '${workspaceFolder}'", + "createTemporaryIntegratedConsole": true } ] }