File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ export class Commands {
414
414
url ?: string
415
415
agent_name ?: string
416
416
command ?: string
417
- workspace_name ? : string
417
+ workspace_name : string
418
418
} ) : Promise < void > {
419
419
// Launch and run command in terminal if command is provided
420
420
if ( app . command ) {
@@ -426,7 +426,7 @@ export class Commands {
426
426
const terminal = vscode . window . createTerminal ( app . status )
427
427
428
428
// If workspace_name is provided, run coder ssh before the command
429
- if ( app . workspace_name ) {
429
+
430
430
let url = this . storage . getUrl ( )
431
431
if ( ! url ) {
432
432
throw new Error ( "No coder url found for sidebar" ) ;
@@ -438,9 +438,6 @@ export class Commands {
438
438
) } ${ app . workspace_name } `)
439
439
await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) )
440
440
terminal . sendText ( app . command ?? "" )
441
- } else {
442
- terminal . sendText ( "need workspace name" )
443
- }
444
441
terminal . show ( false )
445
442
} ) ;
446
443
}
You can’t perform that action at this time.
0 commit comments