Skip to content

Commit 00edfb5

Browse files
authored
fix(amazonq): remove pointless timeout on initialize
5 second constraint is on encryption parameters, not the initialize request
1 parent 43c1c65 commit 00edfb5

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs
334334
encryptionManager.writeInitializationPayload(launcherHandler.process.outputStream)
335335

336336
val initializeResult = try {
337-
withTimeout(5.seconds) {
338-
languageServer.initialize(createInitializeParams()).await()
339-
}
340-
} catch (_: TimeoutCancellationException) {
341-
LOG.warn { "LSP initialization timed out" }
342-
null
337+
languageServer.initialize(createInitializeParams()).await()
343338
} catch (e: Exception) {
344339
LOG.warn(e) { "LSP initialization failed" }
345340
null

0 commit comments

Comments
 (0)