Skip to content

Commit 554a7dd

Browse files
andrewyuqrli
andauthored
Update plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt
Co-authored-by: Richard Li <[email protected]>
1 parent f8bfc15 commit 554a7dd

File tree

1 file changed

+3
-3
lines changed
  • plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service

1 file changed

+3
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
209209

210210
internal suspend fun invokeCodeWhispererInBackground(requestContext: RequestContext): Job {
211211
val popup = withContext(EDT) {
212-
val it = CodeWhispererPopupManager.getInstance().initPopup()
213-
Disposer.register(it) { CodeWhispererInvocationStatus.getInstance().finishInvocation() }
214-
it
212+
CodeWhispererPopupManager.getInstance().initPopup().also {
213+
Disposer.register(it) { CodeWhispererInvocationStatus.getInstance().finishInvocation() }
214+
}
215215
}
216216

217217
val workerContexts = mutableListOf<WorkerContext>()

0 commit comments

Comments
 (0)