-
Notifications
You must be signed in to change notification settings - Fork 251
deps(flare): Add registry entry for flare manifest endpoint #5610
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
base: feature/q-lsp-chat
Are you sure you want to change the base?
deps(flare): Add registry entry for flare manifest endpoint #5610
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
private val DEFAULT_MANIFEST_URL = getManifestEndpoint() | ||
|
||
private fun getManifestEndpoint(): String { | ||
val endpoint = Registry.get("amazon.q.flare.endpoint").asString() | ||
return endpoint.ifBlank { "https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json" } | ||
} |
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.
value will be read on class init
private val DEFAULT_MANIFEST_URL = getManifestEndpoint() | |
private fun getManifestEndpoint(): String { | |
val endpoint = Registry.get("amazon.q.flare.endpoint").asString() | |
return endpoint.ifBlank { "https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json" } | |
} | |
private val DEFAULT_MANIFEST_URL | |
get() = getManifestEndpoint() | |
private fun getManifestEndpoint(): String { | |
val endpoint = Registry.get("amazon.q.flare.endpoint").asString() | |
return endpoint.ifBlank { "https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json" } | |
} |
should probably just delete DEFAULT_MANIFEST_URL and only use the method
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.