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-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -126,11 +126,11 @@ class ArtifactHelper(private val lspArtifactsPath: Path = DEFAULT_ARTIFACT_PATH,
126
126
}
127
127
}
128
128
return downloadPath
129
-
} catch (e:CancellationException) {
130
-
logger.error(e) { "User cancelled download and extracting of LSP artifacts.." } // fallback to older version of LSP artifacts if available.
131
129
} catch (e:Exception) {
132
-
logger.error(e) { "Failed to download/move LSP artifacts on attempt ${currentAttempt.get()}" }
133
-
} finally {
130
+
when (e) {
131
+
isCancellationException-> { logger.error(e) { "User cancelled download and extracting of LSP artifacts.." } }
132
+
else-> { logger.error(e) { "Failed to download/move LSP artifacts on attempt ${currentAttempt.get()}" } }
0 commit comments