@@ -26,7 +26,7 @@ export class Commands {
26
26
private readonly vscodeProposed : typeof vscode ,
27
27
private readonly restClient : Api ,
28
28
private readonly storage : Storage ,
29
- ) { }
29
+ ) { }
30
30
31
31
/**
32
32
* Find the requested agent if specified, otherwise return the agent if there
@@ -424,20 +424,20 @@ export class Commands {
424
424
cancellable : false
425
425
} , async ( ) => {
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
-
430
- let url = this . storage . getUrl ( )
431
- if ( ! url ) {
432
- throw new Error ( "No coder url found for sidebar" ) ;
433
- }
434
- let binary = await this . storage . fetchBinary ( this . restClient , toSafeHost ( url ) )
435
- const escape = ( str : string ) : string => `"${ str . replace ( / " / g, '\\"' ) } "`
436
- terminal . sendText ( `${ escape ( binary ) } ssh --global-config ${ escape (
437
- path . dirname ( this . storage . getSessionTokenPath ( toSafeHost ( url ) ) ) ,
438
- ) } ${ app . workspace_name } `)
439
- await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) )
440
- terminal . sendText ( app . command ?? "" )
429
+
430
+ let url = this . storage . getUrl ( )
431
+ if ( ! url ) {
432
+ throw new Error ( "No coder url found for sidebar" ) ;
433
+ }
434
+ let binary = await this . storage . fetchBinary ( this . restClient , toSafeHost ( url ) )
435
+ const escape = ( str : string ) : string => `"${ str . replace ( / " / g, '\\"' ) } "`
436
+ terminal . sendText ( `${ escape ( binary ) } ssh --global-config ${ escape (
437
+ path . dirname ( this . storage . getSessionTokenPath ( toSafeHost ( url ) ) ) ,
438
+ ) } ${ app . workspace_name } `)
439
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) )
440
+ terminal . sendText ( app . command ?? "" )
441
441
terminal . show ( false )
442
442
} ) ;
443
443
}
0 commit comments