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/artifacts/ArtifactHelper.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,10 @@ class ArtifactHelper(private val lspArtifactsPath: Path = DEFAULT_ARTIFACT_PATH,
128
128
return downloadPath
129
129
} catch (e:Exception) {
130
130
when (e) {
131
-
isCancellationException-> { logger.error(e) { "User cancelled download and extracting of LSP artifacts.." } }
131
+
isCancellationException-> {
132
+
logger.error(e) { "User cancelled download and extracting of LSP artifacts.." }
133
+
currentAttempt.set(maxDownloadAttempts) // To exit the while loop.
134
+
}
132
135
else-> { logger.error(e) { "Failed to download/move LSP artifacts on attempt ${currentAttempt.get()}" } }
0 commit comments