From 21ff083b9bda64876df0d9b33b25b45f8f72cb90 Mon Sep 17 00:00:00 2001 From: Mike McDonald <2575327+asciimike@users.noreply.github.com> Date: Fri, 15 Oct 2021 21:56:17 +0000 Subject: [PATCH] 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. --- pkg/cmd/codespace/create.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/cmd/codespace/create.go b/pkg/cmd/codespace/create.go index a558f4c67..70ad8928d 100644 --- a/pkg/cmd/codespace/create.go +++ b/pkg/cmd/codespace/create.go @@ -266,9 +266,7 @@ func getMachineName(ctx context.Context, apiClient apiClient, repoID int, machin machineNames := make([]string, 0, len(machines)) machineByName := make(map[string]*api.Machine) for _, m := range machines { - nameParts := camelcase.Split(m.Name) - machineName := strings.Title(strings.ToLower(nameParts[0])) - machineName = fmt.Sprintf("%s - %s", machineName, m.DisplayName) + machineName: = m.DisplayName machineNames = append(machineNames, machineName) machineByName[machineName] = m }