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
fix(amazonq): only download single copy of LSP at once (#5659)
This addresses multiple problems with the Flare dependency resolution:
* Multiple projects starting will attempt to download the same artifact concurrently to the same location
* If the user has never downloaded the LSP, they always get an error because we incorrectly assume that a file exists
* Multiple projects can resolve different versions of the server/client
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AmazonQPanel.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,7 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
116
116
): String {
117
117
val quickActionConfig = generateQuickActionConfig()
118
118
val postMessageToJavaJsCode = receiveMessageQuery.inject("JSON.stringify(message)")
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs
266
266
267
267
init {
268
268
// will cause slow service init, but maybe fine for now. will not block UI since fetch/extract will be under background progress
269
-
val artifact = runBlocking { ArtifactManager(project, manifestRange =null).fetchArtifact() }.toAbsolutePath()
269
+
val artifact = runBlocking { service<ArtifactManager>().fetchArtifact(project) }.toAbsolutePath()
270
270
val node =if (SystemInfo.isWindows) "node.exe"else"node"
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactManager.kt
0 commit comments