Skip to content

Commit 1ea5ed9

Browse files
Merge main into feature/flare-compaction
2 parents a3c58be + ee1010e commit 1ea5ed9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/cfnlsp/server/CfnLspInstaller.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import kotlin.io.path.isDirectory
2323

2424
internal class CfnLspInstaller(
2525
private val storageDir: Path = defaultStorageDir(),
26-
private val manifestAdapter: GitHubManifestAdapter = GitHubManifestAdapter(CfnLspEnvironment.PROD),
26+
private val manifestAdapter: GitHubManifestAdapter = GitHubManifestAdapter(CfnLspEnvironment.fromEnvironment()),
2727
) {
2828
private val httpClient = HttpClient.newBuilder()
2929
.followRedirects(HttpClient.Redirect.NORMAL)

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/cfnlsp/server/CfnLspServerConfig.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,14 @@ internal object CfnLspServerConfig {
1313
}
1414

1515
internal enum class CfnLspEnvironment {
16-
ALPHA, BETA, PROD
16+
ALPHA, BETA, PROD;
17+
18+
companion object {
19+
fun fromEnvironment(): CfnLspEnvironment =
20+
if (System.getenv("AWS_TOOLKIT_AUTOMATION")?.equals("true", ignoreCase = true) == true) {
21+
BETA
22+
} else {
23+
PROD
24+
}
25+
}
1726
}

0 commit comments

Comments
 (0)