Skip to content

Commit 6f83606

Browse files
committed
workspace name isn't optional
1 parent c24b675 commit 6f83606

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/commands.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export class Commands {
414414
url?: string
415415
agent_name?: string
416416
command?: string
417-
workspace_name?: string
417+
workspace_name: string
418418
}): Promise<void> {
419419
// Launch and run command in terminal if command is provided
420420
if (app.command) {
@@ -426,7 +426,7 @@ export class Commands {
426426
const terminal = vscode.window.createTerminal(app.status)
427427

428428
// If workspace_name is provided, run coder ssh before the command
429-
if (app.workspace_name) {
429+
430430
let url = this.storage.getUrl()
431431
if (!url) {
432432
throw new Error("No coder url found for sidebar");
@@ -438,9 +438,6 @@ export class Commands {
438438
)} ${app.workspace_name}`)
439439
await new Promise((resolve) => setTimeout(resolve, 5000))
440440
terminal.sendText(app.command ?? "")
441-
} else {
442-
terminal.sendText("need workspace name")
443-
}
444441
terminal.show(false)
445442
});
446443
}

0 commit comments

Comments
 (0)