Skip to content

Commit 143e35c

Browse files
fix(amazonq): push customizations on startup (#7297)
## Problem At the startup of the extension, the customization that a user already decided previously was not being pushed to flare. The only time we would push the customization to flare was if the customization was changed. Otherwise everything else works as expected. ## Solution On startup, push the customization to flare (if it already exists) --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: nkomonen-amazon <nkomonen@amazon.com>
1 parent c97740e commit 143e35c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/amazonq/src/lsp/chat/activation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export async function activate(languageClient: LanguageClient, encryptionKey: Bu
2525
type: 'profile',
2626
profileArn: AuthUtil.instance.regionProfileManager.activeRegionProfile?.arn,
2727
})
28+
// We need to push the cached customization on startup explicitly
29+
await pushConfigUpdate(languageClient, {
30+
type: 'customization',
31+
customization: getSelectedCustomization(),
32+
})
2833

2934
const provider = new AmazonQChatViewProvider(mynahUIPath)
3035

0 commit comments

Comments
 (0)