@@ -10,8 +10,7 @@ import { waitUntil } from '../../utilities/timeoutUtils'
10
10
import { isDebugInstance } from '../../vscode/env'
11
11
import { tmpdir } from 'os'
12
12
import { join } from 'path'
13
- // eslint-disable-next-line no-restricted-imports
14
- import * as fs from 'fs'
13
+ import * as nodefs from 'fs' // eslint-disable-line no-restricted-imports
15
14
import * as vscode from 'vscode'
16
15
import * as tls from 'tls'
17
16
@@ -118,14 +117,14 @@ export function getVSCodeSettings(): { proxyUrl?: string; certificatePath?: stri
118
117
119
118
// Create a temporary file with certificates
120
119
const tempDir = join ( tmpdir ( ) , 'aws-toolkit-vscode' )
121
- if ( ! fs . existsSync ( tempDir ) ) {
122
- fs . mkdirSync ( tempDir , { recursive : true } )
120
+ if ( ! nodefs . existsSync ( tempDir ) ) {
121
+ nodefs . mkdirSync ( tempDir , { recursive : true } )
123
122
}
124
123
125
124
const certPath = join ( tempDir , 'vscode-ca-certs.pem' )
126
125
const certContent = certs . join ( '\n' )
127
126
128
- fs . writeFileSync ( certPath , certContent )
127
+ nodefs . writeFileSync ( certPath , certContent )
129
128
result . certificatePath = certPath
130
129
logger . info ( `Created certificate file at: ${ certPath } ` )
131
130
}
0 commit comments