Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/features/PesterTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ export class PesterTestsFeature implements vscode.Disposable {
// Ensure the necessary script exists (for testing). The debugger will
// start regardless, but we also pass its success along.
return utils.fileExists(this.invokePesterStubScriptPath)
&& vscode.debug.startDebugging(vscode.workspace.workspaceFolders[0], launchConfig);
&& vscode.debug.startDebugging(vscode.workspace.workspaceFolders?.[0], launchConfig);
}
}
2 changes: 1 addition & 1 deletion src/features/RunCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class RunCodeFeature implements vscode.Disposable {
this.sessionManager.getSessionDetails());

// TODO: Update to handle multiple root workspaces.
vscode.debug.startDebugging(vscode.workspace.workspaceFolders[0], launchConfig);
vscode.debug.startDebugging(vscode.workspace.workspaceFolders?.[0], launchConfig);
}
}

Expand Down