Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.intellij.util.io.await
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.TimeoutCancellationException
import kotlinx.coroutines.async
import kotlinx.coroutines.future.asCompletableFuture
import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -334,12 +333,7 @@
encryptionManager.writeInitializationPayload(launcherHandler.process.outputStream)

val initializeResult = try {
withTimeout(5.seconds) {
languageServer.initialize(createInitializeParams()).await()
}
} catch (_: TimeoutCancellationException) {
LOG.warn { "LSP initialization timed out" }
null
languageServer.initialize(createInitializeParams()).await()

Check warning on line 336 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

View check run for this annotation

Codecov / codecov/patch

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

Added line #L336 was not covered by tests
} catch (e: Exception) {
LOG.warn(e) { "LSP initialization failed" }
null
Expand Down
Loading