Skip to content

Commit 8bb0e3e

Browse files
committed
fix import
1 parent 006e55d commit 8bb0e3e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

packages/core/src/shared/lsp/utils/platform.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { waitUntil } from '../../utilities/timeoutUtils'
1010
import { isDebugInstance } from '../../vscode/env'
1111
import { tmpdir } from 'os'
1212
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
1514
import * as vscode from 'vscode'
1615
import * 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
}

packages/webpack.base.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ module.exports = (env = {}, argv = {}) => {
3838
externals: {
3939
vscode: 'commonjs vscode',
4040
vue: 'root Vue',
41-
fs: 'commonjs fs',
42-
path: 'commonjs path',
43-
os: 'commonjs os',
4441
tls: 'commonjs tls',
4542
},
4643
resolve: {

0 commit comments

Comments
 (0)