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/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt
// the flow buffer will never complete so insert some arbitrary timeout until we figure out how to end the flow
569
570
// after the error stream is closed and drained
570
571
val errorStream = runBlocking { this@executeAsyncIfRunning.errorStream.timeout(500.milliseconds).catch { }.toList() }
571
-
throwRuntimeException("LSP execution error. See logs for more details: ${errorStream.joinToString(separator ="")}", ex.cause)
572
+
throwIllegalStateException("LSP execution error. See logs for more details: ${errorStream.joinToString(separator ="")}", ex.cause)
572
573
}
573
574
574
575
throw ex
575
576
}
576
-
} ?: (CompletableFuture.failedFuture(IllegalStateException("LSP Server not running")))
577
+
} ?: (CompletableFuture.failedFuture(IllegalStateException("LSP failed to start. See logs for more details: ${AmazonQLspService.getInstance(project).instanceFlow.first().errorStream.timeout(500.milliseconds).catch { }.toList().joinToString(separator ="")}")))
577
578
578
579
// We assume there is only one outgoing request per tab because the input is
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
0 commit comments