Skip to content

Commit 809d70e

Browse files
committed
Fix creation of prompts not opening files in the editor
1 parent ae4af35 commit 809d70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
158158
// The filepath sent by the server contains unicode characters which need to be
159159
// decoded for JB file handling APIs to be handle to handle file operations
160160
val fileToOpen = URLDecoder.decode(params.uri, StandardCharsets.UTF_8.name())
161-
ApplicationManager.getApplication().invokeLater {
161+
ApplicationManager.getApplication().invokeAndWait {
162162
try {
163163
val virtualFile = VirtualFileManager.getInstance().findFileByUrl(fileToOpen)
164164
?: throw IllegalArgumentException("Cannot find file: $fileToOpen")

0 commit comments

Comments
 (0)