Skip to content

Commit 1fe2448

Browse files
authored
fix: Fix manifest fetcher (#5865)
Follow-up to #5838 since that was pushed in a hurry. Confirmed working when testing reroute logic.
1 parent 08edb5d commit 1fe2448

File tree

1 file changed

+5
-4
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ import software.aws.toolkits.jetbrains.core.getTextFromUrl
2121
import software.aws.toolkits.jetbrains.core.saveFileFromUrl
2222
import java.nio.file.Path
2323

24-
class ManifestFetcher(
25-
private val lspManifestUrl: String = getManifestEndpoint(),
26-
private val manifestPath: Path = DEFAULT_MANIFEST_PATH,
27-
) {
24+
class ManifestFetcher {
2825
companion object {
2926
private val mapper = jacksonObjectMapper().apply { configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) }
3027
private val logger = getLogger<ManifestFetcher>()
@@ -41,6 +38,10 @@ class ManifestFetcher(
4138
.resolve("jetbrains-lsp-manifest.json")
4239
}
4340

41+
private val lspManifestUrl
42+
get() = getManifestEndpoint()
43+
private val manifestPath: Path = DEFAULT_MANIFEST_PATH
44+
4445
@get:VisibleForTesting
4546
internal val lspManifestFilePath: Path
4647
get() = manifestPath

0 commit comments

Comments
 (0)