-
Notifications
You must be signed in to change notification settings - Fork 251
fix(amazonq): Fix prompt file not opening in windows #5750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed working on Windows
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt
Outdated
Show resolved
Hide resolved
@@ -146,20 +148,20 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC | |||
if (params.uri.isNullOrEmpty()) { | |||
return CompletableFuture.completedFuture(ShowDocumentResult(false)) | |||
} | |||
|
|||
val fileToOpen = URLDecoder.decode(params.uri, StandardCharsets.UTF_8.name()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please include inline comment why
Types of changes
Description
File URI sent by the server is encoded. This is not recognized as a valid path by JB in Windows. Decoding the path to UTF-8 charset.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.