Skip to content

Commit 7af0b83

Browse files
fix(amazonq): add closing bracket to Amazon Q inline example aws#6454
## Problem The first Amazon Q inline suggestion example is missing a closing bracket, and the returned response often excludes it. ## Solution Simplifying the example by just including the closing bracket.
1 parent 00680f7 commit 7af0b83

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Inline: Typos in the first example suggestion"
4+
}

packages/core/src/amazonq/onboardingPage/walkthrough.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ export const walkthroughInlineSuggestionsExample = Commands.declare(
5050
`_aws.amazonq.walkthrough.inlineSuggestionsExample`,
5151
() => async () => {
5252
const fileName = 'AmazonQ_generate_suggestion.py'
53-
const fileContents = `# TODO: place your cursor at the end of line 5 and press Enter to generate a suggestion.
53+
const fileContents = `# TODO: place your cursor at the end of line 6 and press Enter to generate a suggestion.
5454
# Tip: press tab to accept the suggestion
5555
5656
fake_users = [
57-
{ "name": "User 1", "id": "user1", "city": "San Francisco", "state": "CA" },`
57+
{ "name": "User 1", "id": "user1", "city": "San Francisco", "state": "CA" },
58+
]`
5859

5960
const uri = vscode.Uri.parse(`untitled:${fileName}`)
6061
const document = await vscode.workspace.openTextDocument(uri)

packages/core/src/codewhisperer/vue/genSuggestionTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default defineComponent({
6868
{
6969
column1: [
7070
'AmazonQ_generate_suggestion.py',
71-
`# TODO: place your cursor at the end of line 5 and press Enter to generate a suggestion.${'\n'}# Tip: press tab to accept the suggestion.${'\n'}${'\n'}fake_users = [${'\n'} { "name": "User 1", "id": "user1", "city": "San Francisco", "state": "CA" },`,
71+
`# TODO: place your cursor at the end of line 6 and press Enter to generate a suggestion.${'\n'}# Tip: press tab to accept the suggestion.${'\n'}${'\n'}fake_users = [${'\n'} { "name": "User 1", "id": "user1", "city": "San Francisco", "state": "CA" },\n]`,
7272
],
7373
column2: [
7474
'AmazonQ_manual_invoke.py',

0 commit comments

Comments
 (0)