Skip to content

feat: coder connect integration #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
ethanndickson committed Apr 17, 2025
commit fb9a263c4a498e06291e2097ba5777da1aace274
2 changes: 1 addition & 1 deletion src/workspacesProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class WorkspaceTreeItem extends OpenableTreeItem {
showOwner ? vscode.TreeItemCollapsibleState.Collapsed : vscode.TreeItemCollapsibleState.Expanded,
workspace.owner_name,
workspace.name,
agents.length > 0 ? agents[0].name : undefined,
agents[0]?.name,
Copy link
Member Author

@ethanndickson ethanndickson Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This saves us needing to fetch the agent in openFromSidebar for a single-agent workspace.
openFromSidebar isn't callable on workspaces with multiple agents, so the undefined there is fine.
if the workspace is stopped, this will be undefined, prompting openWorkspace to always use the CLI instead of Connect.

agents[0]?.expanded_directory,
agents.length > 1 ? "coderWorkspaceMultipleAgents" : "coderWorkspaceSingleAgent",
)
Expand Down