Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
// The filepath sent by the server contains unicode characters which need to be
// decoded for JB file handling APIs to be handle to handle file operations
val fileToOpen = URLDecoder.decode(params.uri, StandardCharsets.UTF_8.name())
ApplicationManager.getApplication().invokeLater {
ApplicationManager.getApplication().invokeAndWait {

Check warning on line 161 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt

View check run for this annotation

Codecov / codecov/patch

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

Added line #L161 was not covered by tests
try {
val virtualFile = VirtualFileManager.getInstance().findFileByUrl(fileToOpen)
?: throw IllegalArgumentException("Cannot find file: $fileToOpen")
Expand Down
Loading