Skip to content

Commit 1cb3ee2

Browse files
committed
Add registry entry for flare manifest endpoint
1 parent f948277 commit 1cb3ee2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ArtifactManager(
3232

3333
companion object {
3434
private val DEFAULT_VERSION_RANGE = SupportedManifestVersionRange(
35-
startVersion = SemVer("1.0.0", 1, 0, 0),
35+
startVersion = SemVer("0.0.0", 0, 0, 0),
3636
endVersion = SemVer("2.0.0", 2, 0, 0)
3737
)
3838
private val logger = getLogger<ArtifactManager>()

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package software.aws.toolkits.jetbrains.services.amazonq.lsp.artifacts
55

6+
import com.intellij.openapi.util.registry.Registry
67
import org.jetbrains.annotations.VisibleForTesting
78
import software.aws.toolkits.core.utils.deleteIfExists
89
import software.aws.toolkits.core.utils.error
@@ -24,8 +25,8 @@ class ManifestFetcher(
2425
companion object {
2526
private val logger = getLogger<ManifestFetcher>()
2627

27-
private const val DEFAULT_MANIFEST_URL =
28-
"https://aws-toolkit-language-servers.amazonaws.com/remoteWorkspaceContext/0/manifest.json"
28+
private val DEFAULT_MANIFEST_URL =
29+
Registry.get("amazon.q.flare.endpoint").asString()
2930

3031
private val DEFAULT_MANIFEST_PATH: Path = getToolkitsCommonCacheRoot()
3132
.resolve("aws")

plugins/amazonq/src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
restartRequired="true"/>
9393
<registryKey key="inline.completion.rem.dev.use.rhizome" description="Defined by IntelliJ. Used for Amazon Q to display suggestions on remote."
9494
defaultValue="false" restartRequired="true"/>
95+
<registryKey defaultValue="https://aws-toolkit-language-servers.amazonaws.com/remoteWorkspaceContext/0/manifest.json"
96+
description="Endpoint to use to download flare artifacts"
97+
key="amazon.q.flare.endpoint"/>
9598
</extensions>
9699

97100
<extensionPoints>

0 commit comments

Comments
 (0)