Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Use primary agent for the remote authority when opening a workspace
  • Loading branch information
EhabY committed Jul 15, 2025
commit 817df2b437c9af902b606125188ebb6df2d4f66f
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ export class Commands {
baseUrl,
treeItem.workspaceOwner,
treeItem.workspaceName,
treeItem.workspaceAgent,
treeItem.workspaceFolderPath,
treeItem.primaryAgentName,
treeItem.primaryAgentFolderPath,
true,
);
} else {
Expand Down
8 changes: 4 additions & 4 deletions src/workspacesProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ export class OpenableTreeItem extends vscode.TreeItem {

public readonly workspaceOwner: string,
public readonly workspaceName: string,
public readonly workspaceAgent: string | undefined,
public readonly workspaceFolderPath: string | undefined,
public readonly primaryAgentName: string | undefined,
public readonly primaryAgentFolderPath: string | undefined,

contextValue: CoderOpenableTreeItemType,
) {
Expand Down Expand Up @@ -476,7 +476,7 @@ class AgentTreeItem extends OpenableTreeItem {
}
}

export class WorkspaceTreeItem extends OpenableTreeItem {
class WorkspaceTreeItem extends OpenableTreeItem {
public appStatus: {
name: string;
url?: string;
Expand Down Expand Up @@ -509,7 +509,7 @@ export class WorkspaceTreeItem extends OpenableTreeItem {
: vscode.TreeItemCollapsibleState.Expanded,
workspace.owner_name,
workspace.name,
undefined,
agents[0]?.name,
agents[0]?.expanded_directory,
agents.length > 1
? "coderWorkspaceMultipleAgents"
Expand Down