-
Notifications
You must be signed in to change notification settings - Fork 747
feat(core): Store codewhisperer customization in global state as single value and consume new authUtil #7067
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
opieter-aws
merged 4 commits into
aws:feature/amazonqLSP-auth
from
opieter-aws:feature/amazonqLSP-auth-customizations
Apr 17, 2025
Merged
feat(core): Store codewhisperer customization in global state as single value and consume new authUtil #7067
opieter-aws
merged 4 commits into
aws:feature/amazonqLSP-auth
from
opieter-aws:feature/amazonqLSP-auth-customizations
Apr 17, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…le value and consume new authUtil
|
Contributor
If you need to add logic to migrate the old value (for existing users), a good place to do that is adding a new function to the
Analogous case for settings (as opposed to globalState): aws-toolkit-vscode/packages/core/src/shared/settings.ts Lines 663 to 672 in a264377
|
hayemaxi
reviewed
Apr 16, 2025
hayemaxi
reviewed
Apr 16, 2025
justinmk3
reviewed
Apr 16, 2025
justinmk3
reviewed
Apr 16, 2025
justinmk3
approved these changes
Apr 17, 2025
e61ab96
into
aws:feature/amazonqLSP-auth
2 of 22 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
With the old VSCode auth, customization was stored in global state (indexed by connection ID). With the new auth from the Flare identity server, this no longer applies since there is only a single connection
Solution
CODEWHISPERER_SELECTED_CUSTOMIZATIONin the global state to be a single value instead of a mapFollow-up
Investigate if it's possible to hook up the customization to the Q profile from the new Region Manager, so customizations are persisted between different logins
feature/xbranches will not be squash-merged at release time.