Skip to content

Commit bb6a31d

Browse files
authored
Merge branch 'aws:master' into master
2 parents 915b664 + aa58698 commit bb6a31d

20 files changed

+81
-91
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"date": "2024-07-18",
3+
"version": "1.16.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Amazon q /dev: include granular error handling for code generation failed state"
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "Amazon Q Code Transformation: always show build logs from last job run"
12+
},
13+
{
14+
"type": "Bug Fix",
15+
"description": "Unexpected SSO expiration on Windows due to EPERM"
16+
}
17+
]
18+
}

packages/amazonq/.changes/next-release/Bug Fix-9b858707-a679-437f-b2f4-c3163d80e1b7.json

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

packages/amazonq/.changes/next-release/Bug Fix-acc20495-b700-47cd-b3fc-d73a34c7c720.json

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

packages/amazonq/.changes/next-release/Bug Fix-e36701b2-54c6-4be5-9a9c-d82a91e00060.json

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

packages/amazonq/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.16.0 2024-07-18
2+
3+
- **Bug Fix** Amazon q /dev: include granular error handling for code generation failed state
4+
- **Bug Fix** Amazon Q Code Transformation: always show build logs from last job run
5+
- **Bug Fix** Unexpected SSO expiration on Windows due to EPERM
6+
17
## 1.15.0 2024-07-15
28

39
- **Bug Fix** Amazon Q Chat: Fixes a bug when the prompt input exceeds the width of the chat box it's not always wrapped correctly.

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "Amazon Q is your generative AI-powered assistant across the software development lifecycle.",
5-
"version": "1.16.0-SNAPSHOT",
5+
"version": "1.17.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/core/src/shared/globalState.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ type samInitStateKey =
1515
| 'SAM_INIT_IMAGE_BOOLEAN_KEY'
1616
| 'SAM_INIT_ARCH_KEY'
1717

18+
type stepFunctionsKey = 'SCRIPT_LAST_DOWNLOADED_URL' | 'CSS_LAST_DOWNLOADED_URL'
19+
1820
type globalKey =
1921
| samInitStateKey
22+
| stepFunctionsKey
2023
| 'aws.downloadPath'
2124
| 'aws.lastTouchedS3Folder'
2225
| 'aws.lastUploadedToS3Folder'

packages/core/src/stepFunctions/activation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function activate(
6262
*/
6363
export const previewStateMachineCommand = Commands.declare(
6464
'aws.previewStateMachine',
65-
(globalState: vscode.Memento, manager: AslVisualizationManager) => async (arg?: vscode.TextEditor | vscode.Uri) => {
65+
(manager: AslVisualizationManager) => async (arg?: vscode.TextEditor | vscode.Uri) => {
6666
try {
6767
arg ??= vscode.window.activeTextEditor
6868
const input = arg instanceof vscode.Uri ? arg : arg?.document
@@ -71,7 +71,7 @@ export const previewStateMachineCommand = Commands.declare(
7171
throw new ToolkitError('No active text editor or document found')
7272
}
7373

74-
return await manager.visualizeStateMachine(globalState, input)
74+
return await manager.visualizeStateMachine(input)
7575
} finally {
7676
// TODO: Consider making the metric reflect the success/failure of the above call
7777
telemetry.stepfunctions_previewstatemachine.emit()
@@ -88,8 +88,8 @@ async function registerStepFunctionCommands(
8888
const cdkVisualizationManager = new AslVisualizationCDKManager(extensionContext)
8989

9090
extensionContext.subscriptions.push(
91-
previewStateMachineCommand.register(extensionContext.globalState, visualizationManager),
92-
renderCdkStateMachineGraph.register(extensionContext.globalState, cdkVisualizationManager),
91+
previewStateMachineCommand.register(visualizationManager),
92+
renderCdkStateMachineGraph.register(cdkVisualizationManager),
9393
Commands.register('aws.stepfunctions.createStateMachineFromTemplate', async () => {
9494
try {
9595
await createStateMachineFromTemplate(extensionContext)

packages/core/src/stepFunctions/commands/visualizeStateMachine/abstractAslVisualizationManager.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ export abstract class AbstractAslVisualizationManager<T extends AslVisualization
1919

2020
public constructor(private readonly extensionContext: vscode.ExtensionContext) {}
2121

22-
public abstract visualizeStateMachine(
23-
globalState: vscode.Memento,
24-
uri: vscode.Uri
25-
): Promise<vscode.WebviewPanel | undefined>
22+
public abstract visualizeStateMachine(uri: vscode.Uri): Promise<vscode.WebviewPanel | undefined>
2623

2724
protected pushToExtensionContextSubscriptions(visualizationDisposable: vscode.Disposable): void {
2825
this.extensionContext.subscriptions.push(visualizationDisposable)
@@ -57,9 +54,9 @@ export abstract class AbstractAslVisualizationManager<T extends AslVisualization
5754
return this.managedVisualizations.get(key)
5855
}
5956

60-
protected async updateCache(globalState: vscode.Memento, logger: Logger): Promise<void> {
57+
protected async updateCache(logger: Logger): Promise<void> {
6158
try {
62-
await this.cache.updateCache(globalState)
59+
await this.cache.updateCache()
6360
} catch (err) {
6461
// So we can't update the cache, but can we use an existing on disk version.
6562
logger.warn('Updating State Machine Graph Visualisation assets failed, checking for fallback local cache.')

0 commit comments

Comments
 (0)