Skip to content

Conversation

@manodnyab
Copy link
Contributor

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@manodnyab manodnyab requested a review from a team as a code owner April 21, 2025 03:28
@github-actions
Copy link

github-actions bot commented Apr 21, 2025

Qodana Community for JVM

It 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
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@manodnyab manodnyab changed the title Add registry entry for flare manifest endpoint deps(flare): Add registry entry for flare manifest endpoint Apr 21, 2025
Comment on lines +32 to +37
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" }
}
Copy link
Contributor

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

Suggested change
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

@rli rli deleted the branch feature/q-lsp-chat June 16, 2025 23:13
@rli rli closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants