X Tutup
Skip to content

Commit 21ff083

Browse files
authored
Removing "friendly" machine name from prompt
Currently the options end up as `Basic` through to `X`. No other client provides these types of names, so we should just show machine info.
1 parent 06c06c8 commit 21ff083

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/cmd/codespace/create.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ func getMachineName(ctx context.Context, apiClient apiClient, repoID int, machin
266266
machineNames := make([]string, 0, len(machines))
267267
machineByName := make(map[string]*api.Machine)
268268
for _, m := range machines {
269-
nameParts := camelcase.Split(m.Name)
270-
machineName := strings.Title(strings.ToLower(nameParts[0]))
271-
machineName = fmt.Sprintf("%s - %s", machineName, m.DisplayName)
269+
machineName: = m.DisplayName
272270
machineNames = append(machineNames, machineName)
273271
machineByName[machineName] = m
274272
}

0 commit comments

Comments
 (0)
X Tutup