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 {
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 }
You can’t perform that action at this time.
0 commit comments