You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -463,6 +463,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs
463
463
464
464
val node =if (SystemInfo.isWindows) "node.exe"else"node"
465
465
val nodePath = getNodeRuntimePath(artifact.resolve(node))
466
+
val emptyFile =Files.createTempFile("empty", null).toAbsolutePath().toString()
466
467
467
468
val cmd =NodeExePatcher.patch(nodePath)
468
469
.withParameters(
@@ -476,6 +477,9 @@ private class AmazonQServerInstance(private val project: Project, private val cs
476
477
put("NODE_EXTRA_CA_CERTS", it)
477
478
}
478
479
480
+
put("AWS_CONFIG_FILE", emptyFile)
481
+
put("AWS_SHARED_CREDENTIALS_FILE", emptyFile)
482
+
479
483
// assume default endpoint will pick correct proxy if needed
480
484
val qUri =URI(QDefaultServiceConfig.ENDPOINT)
481
485
val proxy =JdkProxyProvider.getInstance().proxySelector.select(qUri)
0 commit comments