File tree 1 file changed +36
-10
lines changed
1 file changed +36
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"version" : " 0.2.0" ,
3
3
"configurations" : [
4
-
5
4
{
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" ,
8
28
"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
16
42
},
17
43
{
18
44
"name" : " .NET Core Attach" ,
You can’t perform that action at this time.
0 commit comments