@@ -10,8 +10,7 @@ import { waitUntil } from '../../utilities/timeoutUtils'
1010import { isDebugInstance } from '../../vscode/env'
1111import { tmpdir } from 'os'
1212import { 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
1514import * as vscode from 'vscode'
1615import * as tls from 'tls'
1716
@@ -118,14 +117,14 @@ export function getVSCodeSettings(): { proxyUrl?: string; certificatePath?: stri
118117
119118 // Create a temporary file with certificates
120119 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 } )
123122 }
124123
125124 const certPath = join ( tempDir , 'vscode-ca-certs.pem' )
126125 const certContent = certs . join ( '\n' )
127126
128- fs . writeFileSync ( certPath , certContent )
127+ nodefs . writeFileSync ( certPath , certContent )
129128 result . certificatePath = certPath
130129 logger . info ( `Created certificate file at: ${ certPath } ` )
131130 }
0 commit comments