Skip to content

Commit 3b8d3ff

Browse files
committed
windows
1 parent 44d8f5f commit 3b8d3ff

File tree

1 file changed

+3
-1
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+3
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.intellij.openapi.components.serviceIfCreated
1818
import com.intellij.openapi.project.Project
1919
import com.intellij.openapi.util.Disposer
2020
import com.intellij.openapi.util.Key
21+
import com.intellij.openapi.util.SystemInfo
2122
import com.intellij.util.io.await
2223
import kotlinx.coroutines.CoroutineScope
2324
import kotlinx.coroutines.Deferred
@@ -240,8 +241,9 @@ private class AmazonQServerInstance(private val project: Project, private val cs
240241
init {
241242
// will cause slow service init, but maybe fine for now. will not block UI since fetch/extract will be under background progress
242243
val artifact = runBlocking { ArtifactManager(project, manifestRange = null).fetchArtifact() }.toAbsolutePath()
244+
val node = if (SystemInfo.isWindows) "node.exe" else "node"
243245
val cmd = GeneralCommandLine(
244-
artifact.resolve("node").toString(),
246+
artifact.resolve(node).toString(),
245247
LspSettings.getInstance().getArtifactPath() ?: artifact.resolve("aws-lsp-codewhisperer.js").toString(),
246248
"--stdio",
247249
"--set-credentials-encryption-key",

0 commit comments

Comments
 (0)