@@ -25,7 +25,7 @@ import { createBoundProcess } from '../../codecatalyst/model'
2525import { getLogger } from '../../shared/logger/logger'
2626import { CancellationError , Timeout } from '../../shared/utilities/timeoutUtils'
2727import { showMessageWithCancel } from '../../shared/utilities/messages'
28- import { SshConfig , sshLogFileLocation } from '../../shared/sshConfig'
28+ import { SshConfig } from '../../shared/sshConfig'
2929import { SshKeyPair } from './sshKeyPair'
3030import { Ec2SessionTracker } from './remoteSessionManager'
3131import { getEc2SsmEnv } from './utils'
@@ -288,22 +288,3 @@ export class Ec2Connecter implements vscode.Disposable {
288288 throw new ToolkitError ( `Unrecognized OS name ${ osName } on instance ${ instanceId } ` , { code : 'UnknownEc2OS' } )
289289 }
290290}
291-
292- // Manually inserted copy
293- export function notACopy (
294- selection : Ec2Selection ,
295- ssmPath : string ,
296- session : SSM . StartSessionResponse
297- ) : NodeJS . ProcessEnv {
298- return Object . assign (
299- {
300- AWS_REGION : selection . region ,
301- AWS_SSM_CLI : ssmPath ,
302- LOG_FILE_LOCATION : sshLogFileLocation ( 'ec2' , selection . instanceId ) ,
303- STREAM_URL : session . StreamUrl ,
304- SESSION_ID : session . SessionId ,
305- TOKEN : session . TokenValue ,
306- } ,
307- process . env
308- )
309- }
0 commit comments