File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ $null = New-Item -Path "$PSScriptRoot\foo[1].txt" -Force
1212
1313Import-Module $PSScriptRoot \..\SampleModule.psd1
1414
15- $WorkspaceRoot = $pwd
15+ $WorkspaceRoot = Convert-Path $PSScriptRoot / ..
16+ Set-Location $WorkspaceRoot
1617
1718Describe ' Verify Path Processing for Non-existing Paths Allowed Impl' {
1819 It ' Processes non-wildcard absolute path to non-existing file via -Path param' {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export class PesterTestsFeature implements IFeature {
3737 let launchConfig = {
3838 request : "launch" ,
3939 type : "PowerShell" ,
40+ name : "PowerShell Launch Pester Tests" ,
4041 script : "Invoke-Pester" ,
4142 args : [
4243 `-Script "${ uri . fsPath } "` ,
@@ -61,6 +62,7 @@ export class PesterTestsFeature implements IFeature {
6162 utils . getDebugSessionFilePath ( ) ,
6263 this . sessionManager . getSessionDetails ( ) ) ;
6364
64- vscode . commands . executeCommand ( 'vscode.startDebug' , launchConfig ) ;
65+ // TODO: Update to handle multiple root workspaces.
66+ vscode . debug . startDebugging ( vscode . workspace . workspaceFolders [ 0 ] , launchConfig ) ;
6567 }
6668}
You can’t perform that action at this time.
0 commit comments