File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 " NOTICE.txt" ,
2020 " osinfo" ,
2121 " osinfo.dsc.resource.json" ,
22+ " powershell.dsc.extension.json" ,
23+ " powershell.discover.ps1" ,
2224 " powershell.dsc.resource.json" ,
2325 " psDscAdapter/" ,
2426 " psscript.ps1" ,
4345 " NOTICE.txt" ,
4446 " osinfo" ,
4547 " osinfo.dsc.resource.json" ,
48+ " powershell.dsc.extension.json" ,
49+ " powershell.discover.ps1" ,
4650 " powershell.dsc.resource.json" ,
4751 " psDscAdapter/" ,
4852 " psscript.ps1" ,
6771 " NOTICE.txt" ,
6872 " osinfo.exe" ,
6973 " osinfo.dsc.resource.json" ,
74+ " powershell.dsc.extension.json" ,
75+ " powershell.discover.ps1" ,
7076 " powershell.dsc.resource.json" ,
7177 " psDscAdapter/" ,
7278 " psscript.ps1" ,
188194 ]
189195 }
190196 },
197+ {
198+ "Name" : " extensions/powershell" ,
199+ "Kind" : " Extension" ,
200+ "RelativePath" : " extensions/powershell" ,
201+ "CopyFiles" : {
202+ "All" : [
203+ " powershell.discover.ps1" ,
204+ " powershell.dsc.extension.json"
205+ ]
206+ }
207+ },
191208 {
192209 "Name" : " tree-sitter-dscexpression" ,
193210 "Kind" : " Grammar" ,
Original file line number Diff line number Diff line change @@ -24,15 +24,19 @@ Describe 'Discover extension tests' {
2424 $out = dsc extension list | ConvertFrom-Json
2525 $LASTEXITCODE | Should - Be 0
2626 if ($IsWindows ) {
27- $out.Count | Should - Be 2 - Because ($out | Out-String )
27+ $out.Count | Should - Be 3 - Because ($out | Out-String )
2828 $out [0 ].type | Should - Be ' Microsoft.Windows.Appx/Discover'
2929 $out [0 ].version | Should - Be ' 0.1.0'
3030 $out [0 ].capabilities | Should - BeExactly @ (' discover' )
3131 $out [0 ].manifest | Should -Not - BeNullOrEmpty
32- $out [1 ].type | Should - BeExactly ' Test /Discover'
32+ $out [1 ].type | Should - BeExactly ' Microsoft.PowerShell /Discover'
3333 $out [1 ].version | Should - BeExactly ' 0.1.0'
3434 $out [1 ].capabilities | Should - BeExactly @ (' discover' )
3535 $out [1 ].manifest | Should -Not - BeNullOrEmpty
36+ $out [2 ].type | Should - BeExactly ' Test/Discover'
37+ $out [2 ].version | Should - BeExactly ' 0.1.0'
38+ $out [2 ].capabilities | Should - BeExactly @ (' discover' )
39+ $out [2 ].manifest | Should -Not - BeNullOrEmpty
3640 } else {
3741 $out.Count | Should - Be 2 - Because ($out | Out-String )
3842 $out [0 ].type | Should - BeExactly ' Microsoft.PowerShell/Discover'
You can’t perform that action at this time.
0 commit comments