-
Notifications
You must be signed in to change notification settings - Fork 273
feat(amazonq): Added LSP Manifest manager related changes #5387
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
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Show resolved
Hide resolved
...ity/src/software/aws/toolkits/jetbrains/services/amazonq/project/manifest/ManifestManager.kt
Outdated
Show resolved
Hide resolved
...ity/src/software/aws/toolkits/jetbrains/services/amazonq/project/manifest/ManifestManager.kt
Outdated
Show resolved
Hide resolved
...ity/src/software/aws/toolkits/jetbrains/services/amazonq/project/manifest/ManifestManager.kt
Outdated
Show resolved
Hide resolved
...ity/src/software/aws/toolkits/jetbrains/services/amazonq/project/manifest/ManifestManager.kt
Outdated
Show resolved
Hide resolved
import java.nio.file.Paths | ||
|
||
|
||
class ManifestFetcher { |
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.
can we replace the existing implementation with this?
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Outdated
Show resolved
Hide resolved
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Outdated
Show resolved
Hide resolved
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Outdated
Show resolved
Hide resolved
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]
|
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Fixed
Show fixed
Hide fixed
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Fixed
Show fixed
Hide fixed
…ogga/initialChanges
...ins-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt
Outdated
Show resolved
Hide resolved
...ins-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt
Outdated
Show resolved
Hide resolved
...ty/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcherTest.kt
Outdated
Show resolved
Hide resolved
...ty/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcherTest.kt
Outdated
Show resolved
Hide resolved
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Outdated
Show resolved
Hide resolved
...ins-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt
Fixed
Show fixed
Hide fixed
...ins-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt
Fixed
Show fixed
Hide fixed
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactManager.kt
Fixed
Show fixed
Hide fixed
} | ||
|
||
// Secondary constructor with no parameters | ||
constructor() : this(ManifestFetcher(), ArtifactHelper(), null) |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
private val logger = getLogger<ArtifactManager>() | ||
} | ||
|
||
fun fetchArtifact() { |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
...community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspException.kt
Fixed
Show fixed
Hide fixed
...mmunity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
Outdated
Show resolved
Hide resolved
...mmunity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
Outdated
Show resolved
Hide resolved
...mmunity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
Outdated
Show resolved
Hide resolved
...mmunity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
Outdated
Show resolved
Hide resolved
...munity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactManager.kt
Outdated
Show resolved
Hide resolved
|
||
fun getCurrentArchitecture() = when { | ||
CpuArch.CURRENT == CpuArch.X86_64 -> "x64" | ||
else -> "arm64" |
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.
should also handle unknown case
* Added Manifest Fetcher * Addressing code review comments * Added unit test cases * Fixing lint issues * Addressing code review comments * Addressing code review comments * Fixing lint issues * Addressing code review comments * Fixing detektMain lint issues * Added unit test cases * Updating code according to spec. * detekt * Fixing typo * Artifact changes * Fixing validation function * Addressing code review comments * Fixing Detekt
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.