Skip to content

Commit

Permalink
Update branding of VSCode in the code command
Browse files Browse the repository at this point in the history
  • Loading branch information
srivatsn authored Oct 25, 2021
1 parent 45ea360 commit 32f1ea5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/codespace/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ func newCodeCmd(app *App) *cobra.Command {

codeCmd := &cobra.Command{
Use: "code",
Short: "Open a codespace in VS Code",
Short: "Open a codespace in Visual Studio Code",
Args: noArgsConstraint,
RunE: func(cmd *cobra.Command, args []string) error {
return app.VSCode(cmd.Context(), codespace, useInsiders)
},
}

codeCmd.Flags().StringVarP(&codespace, "codespace", "c", "", "Name of the codespace")
codeCmd.Flags().BoolVar(&useInsiders, "insiders", false, "Use the insiders version of VS Code")
codeCmd.Flags().BoolVar(&useInsiders, "insiders", false, "Use the insiders version of Visual Studio Code")

return codeCmd
}
Expand All @@ -45,7 +45,7 @@ func (a *App) VSCode(ctx context.Context, codespaceName string, useInsiders bool

url := vscodeProtocolURL(codespaceName, useInsiders)
if err := open.Run(url); err != nil {
return fmt.Errorf("error opening vscode URL %s: %s. (Is VS Code installed?)", url, err)
return fmt.Errorf("error opening vscode URL %s: %s. (Is Visual Studio Code installed?)", url, err)
}

return nil
Expand Down

0 comments on commit 32f1ea5

Please sign in to comment.