Skip to content
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

feat(amazonq): support Q profiles configurations pushed from Clients #814

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

viktorsaws
Copy link
Contributor

Problem

Solution

POC for handling Amazon Q Profile configuration changes in Language Server. Based on WIP Runtimes protocol extension aws/language-server-runtimes#350.

  1. Listen on amazon.q configurations settings pushed from Client to Server using new UpdateConfiguration interface.
  2. Store and handle Amazon Q profiles-related configuration in new configuration manager. Accept startUrl in configuration update to synchronize it with profile change and not rely on getConnectionMetadata for Q (poc idea)
  3. TODO: Listen to profile config changes and re-configure Amazon Q SDKs to point to selected region based on based on Profile.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@viktorsaws viktorsaws force-pushed the amazonq/handle_updateConfiguration branch from b3f270f to 45554b0 Compare March 3, 2025 18:42
@viktorsaws viktorsaws force-pushed the amazonq/handle_updateConfiguration branch from 45554b0 to 050cb9d Compare March 6, 2025 14:06
@@ -308,7 +325,7 @@ export const CodewhispererServerFactory =
const onInlineCompletionHandler = async (
params: InlineCompletionWithReferencesParams,
token: CancellationToken
): Promise<InlineCompletionListWithReferences> => {
): Promise<InlineCompletionListWithReferences | AmazonQLspResponseError> => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Update protocol to support returning errors

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.

1 participant