-
Couldn't load subscription status.
- Fork 273
fix(amazonq): only download single copy of LSP at once #5659
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 JVM2 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
|
|
||
| suspend fun tryDownloadLspArtifacts(project: Project, versions: List<ManifestManager.Version>, target: ManifestManager.VersionTarget?): Path? { | ||
| val temporaryDownloadPath = lspArtifactsPath.resolve("temp") | ||
| val temporaryDownloadPath = Files.createTempDirectory("lsp-dl") |
Check warning
Code scanning / QDJVMC
Possibly blocking call in non-blocking context Warning
This addresses multiple problems with the Flare dependency resolution: * Multiple projects starting will attempt to download the same artifact concurrently to the same location * If the user has never downloaded the LSP, they always get an error because we incorrectly assume that a file exists * Multiple projects can resolve different versions of the server/client
Conflicts: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AmazonQPanel.kt
This addresses multiple problems with the Flare dependency resolution:
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.