Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more useful launch configurations #1499

Merged
merged 2 commits into from
May 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 37 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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": [
""
bergmeister marked this conversation as resolved.
Show resolved Hide resolved
],
"cwd": "${workspaceFolder}",
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
"args": [],
"cwd": "${workspaceRoot}",
"externalConsole": false,
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
"name": "PowerShell Run current Pester File",
bergmeister marked this conversation as resolved.
Show resolved Hide resolved
"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",
Expand All @@ -27,4 +53,4 @@
"processId": "${command:pickProcess}"
}
]
}
}