Skip to content

fix(amazonq): fix lsp warning about unsupported 'aws/chat/sendContextCommands' #5692

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

Merged
merged 4 commits into from
May 8, 2025

Conversation

rli
Copy link
Contributor

@rli rli commented May 8, 2025

Notifications should be registered in the LanguageClient instead of being handled in the message wrapper

License

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

@rli rli requested a review from a team as a code owner May 8, 2025 02:12
@rli rli requested a review from a team as a code owner May 8, 2025 02:16
Copy link

github-actions bot commented May 8, 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 qodana-support@jetbrains.com

@@ -308,6 +310,19 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
ApplicationManager.getApplication()::invokeLater
)

override fun sendContextCommands(params: LSPAny): CompletableFuture<Unit> {
val showContextCommands = """
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a util for this ChatCommunicationManager.convertNotificationToJsonForChat

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont like that pattern
#5693

@rli rli merged commit 7c2ca19 into feature/q-lsp-chat May 8, 2025
12 of 16 checks passed
@rli rli deleted the rli/context-commands branch May 8, 2025 18:42
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.

3 participants