Skip to content

Commit deb8bc9

Browse files
committed
chmod
1 parent 0c18b2c commit deb8bc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import {
3939
import { activate } from './chat/activation'
4040
import { AmazonQResourcePaths } from './lspInstaller'
4141
import { ConfigSection, isValidConfigSection, toAmazonQLSPLogLevel } from './config'
42-
import { chmodSync } from 'fs' // eslint-disable-line no-restricted-imports
4342

4443
const localize = nls.loadMessageBundle()
4544
const logger = getLogger('amazonqLsp.lspClient')
@@ -77,7 +76,7 @@ export async function startLanguageServer(
7776
`
7877
const nodeWrapperPath = path.join(path.dirname(resourcePaths.node), 'node-wrapper')
7978
await fs.writeFile(nodeWrapperPath, nodeWrapper)
80-
chmodSync(nodeWrapperPath, 0o755)
79+
await fs.chmod(nodeWrapperPath, 0o755)
8180
resourcePaths.node = nodeWrapperPath
8281
getLogger('amazonqLsp').info(`Patched node runtime with GLIBC to ${resourcePaths.node}`)
8382
}

0 commit comments

Comments
 (0)