Skip to content

Commit 6af5c57

Browse files
authored
Merge pull request #4804 from KoenZomers/UpdateLaunchJson
Cleaning up and structuring launch profiles for VS Code
2 parents f7c3115 + dd1e390 commit 6af5c57

File tree

2 files changed

+75
-12
lines changed

2 files changed

+75
-12
lines changed

.vscode/launch.json

Lines changed: 74 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,58 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "PowerShell cmdlets: pwsh",
8+
"name": "Debug with nugets in new PowerShell session",
99
"type": "coreclr",
1010
"request": "launch",
1111
"preLaunchTask": "Build with nugets",
12+
"args": [],
13+
"cwd": "${workspaceFolder}",
14+
"stopAtEntry": false,
15+
"console": "externalTerminal",
1216
"program": "pwsh",
13-
"args": [
14-
"-NoExit",
15-
"-NoProfile",
16-
"-Command",
17-
"Import-Module ${userHome}/.local/share/powershell/Modules/PnP.PowerShell.psd1",
18-
],
17+
"osx": {
18+
"program": "pwsh",
19+
},
20+
"windows": {
21+
"program": "pwsh.exe"
22+
}
23+
},
24+
{
25+
"preLaunchTask": "Build with nugets",
26+
"name": "Debug with nugets in existing PowerShell session",
27+
"type": "coreclr",
28+
"request": "attach",
29+
"processId": "${command:pickProcess}",
30+
},
31+
{
32+
"name": "Debug with local copy of PnP Framework in new PowerShell session",
33+
"type": "coreclr",
34+
"request": "launch",
35+
"preLaunchTask": "Build with local copy of PnP Framework",
36+
"args": [],
1937
"cwd": "${workspaceFolder}",
2038
"stopAtEntry": false,
21-
"console": "externalTerminal"
39+
"console": "externalTerminal",
40+
"program": "pwsh",
41+
"osx": {
42+
"program": "pwsh",
43+
},
44+
"windows": {
45+
"program": "pwsh.exe"
46+
}
2247
},
2348
{
24-
"name": ".NET Core Launch with Nuget Build(console)",
49+
"preLaunchTask": "Build with local copy of PnP Framework",
50+
"name": "Debug with local copy of PnP Framework in existing PowerShell session",
51+
"type": "coreclr",
52+
"request": "attach",
53+
"processId": "${command:pickProcess}",
54+
},
55+
{
56+
"name": "Debug with local copy of PnP Core in new PowerShell session",
2557
"type": "coreclr",
2658
"request": "launch",
27-
"preLaunchTask": "Build with nugets",
59+
"preLaunchTask": "Build with local copy of PnP Core SDK",
2860
"args": [],
2961
"cwd": "${workspaceFolder}",
3062
"stopAtEntry": false,
@@ -38,8 +70,38 @@
3870
}
3971
},
4072
{
41-
"preLaunchTask": "Build with nugets",
42-
"name": ".NET Core Attach",
73+
"preLaunchTask": "Build with local copy of PnP Core SDK",
74+
"name": "Debug with local copy of PnP Core in existing PowerShell session",
75+
"type": "coreclr",
76+
"request": "attach",
77+
"processId": "${command:pickProcess}",
78+
},
79+
{
80+
"name": "Debug with local copy of PnP Framework and Core in new PowerShell session",
81+
"type": "coreclr",
82+
"request": "launch",
83+
"preLaunchTask": "Build with local copy of PnP Framework/PnP Core SDK",
84+
"args": [],
85+
"cwd": "${workspaceFolder}",
86+
"stopAtEntry": false,
87+
"console": "externalTerminal",
88+
"program": "pwsh",
89+
"osx": {
90+
"program": "pwsh",
91+
},
92+
"windows": {
93+
"program": "pwsh.exe"
94+
}
95+
},
96+
{
97+
"preLaunchTask": "Build with local copy of PnP Framework/PnP Core SDK",
98+
"name": "Debug with local copy of PnP Framework and Core in existing PowerShell session",
99+
"type": "coreclr",
100+
"request": "attach",
101+
"processId": "${command:pickProcess}",
102+
},
103+
{
104+
"name": "Attach to existing PowerShell session",
43105
"type": "coreclr",
44106
"request": "attach",
45107
"processId": "${command:pickProcess}",

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
9292
- `Set-PnPPropertyBagValue` and `Remove-PnPPropertyBagValue` now toggle the NoScript status of the site to allow setting/removing property bag values, but only if the tenant wide `AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled` is not enabled [#4680](https://github.com/pnp/powershell/pull/4680)
9393
- `Get-PnPTenant` now uses nullable types for the properties that can return null if the property is not set or could not be retrieved. Beware that the property `PublicCdnOrigins` has been renamed to `PublicCdnOriginParsed `. All other property names will remain the same. [#4722](https://github.com/pnp/powershell/pull/4722)
9494
- Removed `New-PnPMicrosoft365Group` setting the group visibility options twice when providing `-HideFromAddressLists` and/or `-HideFromOutlookClients` and adding logging around trying to set the group visibility [#4791](https://github.com/pnp/powershell/pull/4791)
95+
- Visual Studio Code launch profiles have been cleaned up and restructured [#4808](https://github.com/pnp/powershell/pull/4804)
9596

9697
### Fixed
9798

0 commit comments

Comments
 (0)