Skip to content

Commit fcbfff7

Browse files
Enable using $_ for catch exceptions (#27)
Create a local variable in catch blocks that holds the caught exception. Also a bunch of build and style related fixes.
1 parent 393597b commit fcbfff7

27 files changed

+632
-357
lines changed

.vscode/launch.json

-53
Original file line numberDiff line numberDiff line change
@@ -8,65 +8,12 @@
88
"processId": "${command:pickProcess}",
99
"justMyCode": true,
1010
},
11-
{
12-
"name": ".NET FullCLR Launch (console)",
13-
"type": "clr",
14-
"request": "launch",
15-
"preLaunchTask": "Build",
16-
"cwd": "${workspaceFolder}",
17-
"stopAtEntry": false,
18-
"justMyCode": true,
19-
"console": "externalTerminal",
20-
"program": "powershell.exe",
21-
"args": [
22-
"-ExecutionPolicy",
23-
"Bypass",
24-
"-NoExit",
25-
"-Command",
26-
". \"${workspaceRoot}/debugHarness.ps1\"",
27-
],
28-
},
2911
{
3012
"name": ".NET CoreCLR Attach",
3113
"type": "coreclr",
3214
"request": "attach",
3315
"processId": "${command:pickProcess}",
3416
"justMyCode": true,
3517
},
36-
{
37-
"name": ".NET CoreCLR Launch (console)",
38-
"type": "coreclr",
39-
"request": "launch",
40-
"preLaunchTask": "Build",
41-
"cwd": "${workspaceFolder}",
42-
"stopAtEntry": false,
43-
"justMyCode": true,
44-
"console": "externalTerminal",
45-
"linux": {
46-
"program": "/usr/bin/pwsh",
47-
"args": [
48-
"-NoExit",
49-
"-Command",
50-
". \"${workspaceRoot}/debugHarness.ps1\"",
51-
],
52-
},
53-
"osx": {
54-
"program": "/usr/local/bin/pwsh",
55-
"args": [
56-
"-NoExit",
57-
"-Command",
58-
". \"${workspaceRoot}/debugHarness.ps1\"",
59-
],
60-
},
61-
"program": "pwsh.exe",
62-
"args": [
63-
"-ExecutionPolicy",
64-
"Bypass",
65-
"-NoExit",
66-
"-Command",
67-
". \"${workspaceRoot}/debugHarness.ps1\"",
68-
],
69-
},
7018
],
7119
}
72-

.vscode/tasks.json

+13-32
Original file line numberDiff line numberDiff line change
@@ -41,50 +41,31 @@
4141
"command": "Invoke-Build",
4242
"args": [ "-Task", "Clean" ],
4343
},
44+
{
45+
"label": "Quick Build",
46+
"command": "dotnet",
47+
"args": [ "build", "/property:GenerateFullPaths=true" ],
48+
"group": { "kind": "build", "isDefault": true, },
49+
"problemMatcher": "$msCompile",
50+
},
4451
{
4552
"label": "Build",
46-
"command": "Invoke-Build",
47-
"group": {
48-
"kind": "build",
49-
"isDefault": true,
50-
},
51-
"problemMatcher": {
52-
"base": "$msCompile",
53-
"fileLocation": [ "relative", "${workspaceRoot}/src/PSLambda" ],
54-
},
53+
"command": "& ./build.ps1 -Configuration Release -Build",
54+
"group": "build",
5555
},
5656
{
5757
"label": "Test",
58-
"command": "Invoke-Build",
59-
"args": [ "-Task", "Test" ],
60-
"group": {
61-
"kind": "test",
62-
"isDefault": true,
63-
},
58+
"command": "& ./build.ps1 -Configuration Release -Test",
59+
"group": { "kind": "test", "isDefault": true, },
6460
},
6561
{
6662
"label": "Test With Coverage",
63+
"command": "& ./build.ps1 -Configuration Debug -Test -GenerateCodeCoverage",
6764
"group": "test",
68-
"command": "Invoke-Build",
69-
"args": [ "-Task", "Test", "-GenerateCodeCoverage" ],
70-
},
71-
{
72-
"label": "Build and Test",
73-
"group": "test",
74-
"command": "Invoke-Build",
75-
"args": [ "-Task", "Prerelease"],
76-
},
77-
{
78-
"label": "Build and Test With Coverage",
79-
"group": "test",
80-
"command": "Invoke-Build",
81-
"args": [ "-Task", "Prerelease", "-GenerateCodeCoverage"],
8265
},
8366
{
8467
"label": "Install",
85-
"command": "Invoke-Build",
86-
"args": [ "-Task", "Install", "-Configuration", "Release" ],
68+
"command": "& ./build.ps1 -Configuration Release -Task Install",
8769
}
8870
]
8971
}
90-

0 commit comments

Comments
 (0)