Skip to content

Commit 104486c

Browse files
committed
comment added
1 parent dd3d006 commit 104486c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
148148
if (params.uri.isNullOrEmpty()) {
149149
return CompletableFuture.completedFuture(ShowDocumentResult(false))
150150
}
151+
152+
// The filepath sent by the server contains unicode characters which need to be
153+
// decoded for JB file handling APIs to be handle to handle file operations
151154
val fileToOpen = URLDecoder.decode(params.uri, StandardCharsets.UTF_8.name())
152155
if (params.external == true) {
153156
BrowserUtil.open(fileToOpen)

0 commit comments

Comments
 (0)