Skip to content

Commit 2516175

Browse files
committed
fix
1 parent 15c08d6 commit 2516175

File tree

6 files changed

+28
-5
lines changed

6 files changed

+28
-5
lines changed

agent/agent_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,12 @@ func setupAgent(t *testing.T, metadata agentsdk.Manifest, ptyTimeout time.Durati
20132013
if metadata.AgentID == uuid.Nil {
20142014
metadata.AgentID = uuid.New()
20152015
}
2016+
if metadata.AgentName == "" {
2017+
metadata.AgentName = "test-agent"
2018+
}
2019+
if metadata.WorkspaceName == "" {
2020+
metadata.WorkspaceName = "test-workspace"
2021+
}
20162022
coordinator := tailnet.NewCoordinator(logger)
20172023
t.Cleanup(func() {
20182024
_ = coordinator.Close()

cli/open.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (r *RootCmd) openVSCode() *clibase.Cmd {
4242
cmd := &clibase.Cmd{
4343
Annotations: workspaceCommand,
4444
Use: "vscode <workspace> [<directory in workspace>]",
45-
Short: "Open a workspace in Visual Studio Code.",
45+
Short: "Open a workspace in Visual Studio Code",
4646
Middleware: clibase.Chain(
4747
clibase.RequireRangeArgs(1, 2),
4848
r.InitClient(client),
@@ -168,9 +168,8 @@ func (r *RootCmd) openVSCode() *clibase.Cmd {
168168
_, _ = fmt.Fprintf(inv.Stderr, "Opening %s in %s is not supported inside a workspace, please open the following URI on your local machine instead:\n\n", openingPath, vscodeDesktopName)
169169
_, _ = fmt.Fprintf(inv.Stdout, "%s\n", u.String())
170170
return nil
171-
} else {
172-
_, _ = fmt.Fprintf(inv.Stderr, "Opening %s in %s\n", openingPath, vscodeDesktopName)
173171
}
172+
_, _ = fmt.Fprintf(inv.Stderr, "Opening %s in %s\n", openingPath, vscodeDesktopName)
174173

175174
if !testNoOpen {
176175
err = open.Run(u.String())

coderd/apidoc/docs.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/agents.md

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/schemas.md

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)