Skip to content

Commit 1d04d50

Browse files
committed
feedback
1 parent 8fa367e commit 1d04d50

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
271271

272272
override fun openFileDiff(params: OpenFileDiffParams): CompletableFuture<Unit> =
273273
CompletableFuture.supplyAsync({
274-
ApplicationManager.getApplication().invokeLater {
275274
try {
276275
val contentFactory = DiffContentFactory.getInstance()
277276
val fileName = Paths.get(params.originalFileUri).fileName.toString()
@@ -304,9 +303,9 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
304303
} catch (e: Exception) {
305304
LOG.warn { "Failed to open file diff: ${e.message}" }
306305
}
307-
}
308-
Unit
309-
})
306+
},
307+
ApplicationManager.getApplication()::invokeLater
308+
)
310309

311310
companion object {
312311
private val LOG = getLogger<AmazonQLanguageClientImpl>()

0 commit comments

Comments
 (0)