From a84e43cadf69b6631339e5c08ca059912a17ef29 Mon Sep 17 00:00:00 2001 From: Jeff Hubbard Date: Mon, 4 Apr 2022 16:32:38 -0700 Subject: [PATCH] Final copy and behavior update for prompt --- pkg/cmd/codespace/create.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/codespace/create.go b/pkg/cmd/codespace/create.go index 1a5560b8d..5fe111d0c 100644 --- a/pkg/cmd/codespace/create.go +++ b/pkg/cmd/codespace/create.go @@ -127,7 +127,11 @@ func (a *App) Create(ctx context.Context, opts createOptions) error { if len(devcontainers) == 1 && utils.StringInSlice(devcontainers[0].Path, DEFAULT_DEVCONTAINER_DEFINITIONS) { devContainerPath = devcontainers[0].Path } else { - promptOptions := []string{"default"} + promptOptions := []string{} + + if !utils.StringInSlice(devcontainers[0].Path, DEFAULT_DEVCONTAINER_DEFINITIONS) { + promptOptions = []string{"Default Codespaces configuration"} + } for _, devcontainer := range devcontainers { promptOptions = append(promptOptions, devcontainer.Path) @@ -147,7 +151,7 @@ func (a *App) Create(ctx context.Context, opts createOptions) error { } } - if devContainerPath == "default" { + if devContainerPath == "Default Codespaces configuration" { // special arg allows users to opt out of devcontainer.json selection devContainerPath = "" }