Skip to content

Commit bc71c63

Browse files
committed
fix
1 parent b0c3dce commit bc71c63

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

agent/agent_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,12 @@ func setupAgent(t *testing.T, metadata agentsdk.Manifest, ptyTimeout time.Durati
20152015
if metadata.AgentID == uuid.Nil {
20162016
metadata.AgentID = uuid.New()
20172017
}
2018+
if metadata.AgentName == "" {
2019+
metadata.AgentName = "test-agent"
2020+
}
2021+
if metadata.WorkspaceName == "" {
2022+
metadata.WorkspaceName = "test-workspace"
2023+
}
20182024
coordinator := tailnet.NewCoordinator(logger)
20192025
t.Cleanup(func() {
20202026
_ = 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())

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)