Skip to content

Commit abd3e72

Browse files
committed
Merge 'public/master' into feature/awsq
2 parents 5c4d72e + d18a295 commit abd3e72

File tree

7 files changed

+46
-9
lines changed

7 files changed

+46
-9
lines changed

.changes/1.100.0.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"date": "2023-11-26",
3+
"version": "1.100.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Fix a not connected error when starting connection to CodeCatalyst Dev Environment from link"
8+
},
9+
{
10+
"type": "Feature",
11+
"description": "CodeWhisperer supports Json, yaml and Tf"
12+
},
13+
{
14+
"type": "Feature",
15+
"description": "CodeWhisperer security scans support typescript, csharp, json, yaml, tf and hcl files."
16+
},
17+
{
18+
"type": "Feature",
19+
"description": "Auth: Redesign Add Connection page to show all options at once"
20+
},
21+
{
22+
"type": "Feature",
23+
"description": "CodeWhisperer: Uses Generative AI and automated reasoning to rewrite lines of code flagged for security vulnerabilities during a security scan."
24+
}
25+
]
26+
}

.changes/next-release/Bug Fix-2010cfac-f717-490d-b47c-5e3521cb5714.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changes/next-release/Feature-9b52cc17-feb7-402d-be2a-6b17f6fa4d6d.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 1.100.0 2023-11-26
2+
3+
- **Bug Fix** Fix a not connected error when starting connection to CodeCatalyst Dev Environment from link
4+
- **Feature** CodeWhisperer supports Json, yaml and Tf
5+
- **Feature** CodeWhisperer security scans support typescript, csharp, json, yaml, tf and hcl files.
6+
- **Feature** Auth: Redesign Add Connection page to show all options at once
7+
- **Feature** CodeWhisperer: Uses Generative AI and automated reasoning to rewrite lines of code flagged for security vulnerabilities during a security scan.
8+
19
## 1.99.0 2023-11-17
210

311
- **Feature** CodeWhisperer: status bar lists options when clicked and shows suggestion state

src/codewhisperer/commands/basicCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export const applySecurityFix = Commands.declare(
299299
}
300300
}
301301
)
302+
302303
/**
303304
* Forces focus to Amazon Q panel - USE THIS SPARINGLY (don't betray customer trust by hijacking the IDE)
304305
* Used on first load, and any time we want to directly populate chat.

src/codewhisperer/models/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/**
77
* SDK Client
88
*/
9-
109
export const endpoint = 'https://codewhisperer.us-east-1.amazonaws.com/'
1110

1211
export const region = 'us-east-1'

src/codewhisperer/util/editorContext.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ export function extractContextForCodeWhisperer(editor: vscode.TextEditor): codew
5050
} as codewhispererClient.FileContext
5151
}
5252

53+
if (checkLeftContextKeywordsForJsonAndYaml(caretLeftFileContext, editor.document.languageId)) {
54+
return {
55+
filename: getFileNameForRequest(editor),
56+
programmingLanguage: {
57+
languageName: 'plaintext',
58+
},
59+
leftFileContent: caretLeftFileContext,
60+
rightFileContent: caretRightFileContext,
61+
} as codewhispererClient.FileContext
62+
}
63+
5364
return {
5465
filename: getFileNameForRequest(editor),
5566
programmingLanguage: {

0 commit comments

Comments
 (0)