Skip to content

Commit ad39074

Browse files
chore: improve comment
1 parent 52875a4 commit ad39074

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent/agentcontainers/api.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,9 @@ func (api *API) processUpdatedContainersLocked(ctx context.Context, updated code
585585
if !api.devcontainerNames[dc.Name] {
586586
// If the devcontainer name wasn't set via terraform, we
587587
// will attempt to create an agent name based on the workspace
588-
// folder's name. If that is not possible, we will fall back
589-
// to using the container's friendly name.
588+
// folder's name. If it is not possible to generate a valid
589+
// agent name based off of the folder name (i.e. no valid characters),
590+
// we will instead fall back to using the container's friendly name.
590591
dc.Name = safeAgentName(filepath.Base(dc.WorkspaceFolder), dc.Container.FriendlyName)
591592
}
592593
}

0 commit comments

Comments
 (0)