You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix creation of prompts not opening files in the editor (#5781)
There was a threading issue where since the file was opened in EDT and the result was sent back to the server on another thread, it returned the result before the file was opened. This PR makes it synchronous
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -158,18 +158,21 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
158
158
// The filepath sent by the server contains unicode characters which need to be
159
159
// decoded for JB file handling APIs to be handle to handle file operations
160
160
val fileToOpen =URLDecoder.decode(params.uri, StandardCharsets.UTF_8.name())
161
-
ApplicationManager.getApplication().invokeLater {
162
-
try {
163
-
val virtualFile =VirtualFileManager.getInstance().findFileByUrl(fileToOpen)
0 commit comments