Skip to content

Commit 67805a1

Browse files
authored
Add more useful launch configurations (#1499)
* Add more useful launch configurations * Update .vscode/launch.json
1 parent f9661f9 commit 67805a1

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

.vscode/launch.json

+36-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4-
54
{
6-
"name": ".NET Core Launch (console)",
7-
"type": "coreclr",
5+
"type": "PowerShell",
6+
"request": "launch",
7+
"name": "Build",
8+
"script": "./build.ps1",
9+
"args": [
10+
""
11+
],
12+
"cwd": "${workspaceFolder}",
13+
"createTemporaryIntegratedConsole": true
14+
},
15+
{
16+
"type": "PowerShell",
17+
"request": "launch",
18+
"name": "Build & Run all tests",
19+
"script": "./build.ps1; ./build.ps1 -Test",
20+
"args": [
21+
""
22+
],
23+
"cwd": "${workspaceFolder}",
24+
"createTemporaryIntegratedConsole": true
25+
},
26+
{
27+
"type": "PowerShell",
828
"request": "launch",
9-
"preLaunchTask": "build",
10-
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
11-
"args": [],
12-
"cwd": "${workspaceRoot}",
13-
"externalConsole": false,
14-
"stopAtEntry": false,
15-
"internalConsoleOptions": "openOnSessionStart"
29+
"name": "Run current Pester file with PSScriptAnalyzer development build",
30+
"script": "Import-Module ./out/PSScriptAnalyzer/*/PSScriptAnalyzer.psd1; Invoke-Pester -Path '${file}'; $PID",
31+
"args": [
32+
""
33+
],
34+
"cwd": "${workspaceFolder}",
35+
"createTemporaryIntegratedConsole": true
36+
},
37+
{
38+
"name": "PowerShell Attach to Host Process",
39+
"type": "PowerShell",
40+
"request": "attach",
41+
"runspaceId": 1
1642
},
1743
{
1844
"name": ".NET Core Attach",

0 commit comments

Comments
 (0)