Skip to content

Commit c54d40c

Browse files
committed
refactor param
1 parent 8103b55 commit c54d40c

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,15 @@ private class AmazonQServerInstance(private val project: Project, private val cs
317317
}
318318

319319
// invokeOnCompletion results in weird lock/timeout error
320-
initializeResult.asCompletableFuture().handleAsync { r, ex ->
320+
initializeResult.asCompletableFuture().handleAsync { lspInitResult, ex ->
321321
if (ex != null) {
322322
return@handleAsync
323323
}
324324

325325
this@AmazonQServerInstance.apply {
326326
DefaultAuthCredentialsService(project, encryptionManager, this)
327327
TextDocumentServiceHandler(project, this)
328-
WorkspaceServiceHandler(project, initializeResult.getCompleted(), this)
328+
WorkspaceServiceHandler(project, lspInitResult, this)
329329
DefaultModuleDependenciesService(project, this)
330330
}
331331
}

0 commit comments

Comments
 (0)