We need to implement Quick Actions support for Chat Client package.
Solution
Registered Quick Actions handlers in Chat Client package.
Created sample Quick Actions and Chat message handlers in HelloWorld server. Added registration of custom AWS Language server chatQuickActionsProvider capability introduced in https://github.com/aws/language-server-runtimes/pull/131.
Updated sample VSCode client extension to register Chat client synchronously and use chatQuickActionsProvider from LSP server InitializeResult handshake to configure Quick Actions in Chat Client.
Extended Chat Client init function to allow passing configuration from integrating IDE Extension client. This allows to configure chat at start time.
Problem
We need to implement Quick Actions support for Chat Client package.
Solution
chatQuickActionsProvider
capability introduced in https://github.com/aws/language-server-runtimes/pull/131.chatQuickActionsProvider
from LSP server InitializeResult handshake to configure Quick Actions in Chat Client.Note
Check on this PR are failing, until runtimes and types are not updated with https://github.com/aws/language-server-runtimes/pull/131.
Follow-up
It it possible to implement feature to update chat client configuration at runtime after it was initialized. It is not implemented in this PR, but sample message is showed in VsCode extension activation https://github.com/aws/language-servers/pull/282/files#diff-baefbe4699d8511ee6a9fca7274c8c141c0bb1c22b8ab3f5863584b5e58b5af6R137-R142.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.