Skip to content

Commit ca3a617

Browse files
committed
fix: Update lambda quick edit readme
1 parent e052db8 commit ca3a617

File tree

6 files changed

+43
-13
lines changed

6 files changed

+43
-13
lines changed

packages/amazonq/package.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,26 +1330,40 @@
13301330
"fontCharacter": "\\f1de"
13311331
}
13321332
},
1333-
"aws-schemas-registry": {
1333+
"aws-sagemaker-code-editor": {
13341334
"description": "AWS Contributed Icon",
13351335
"default": {
13361336
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
13371337
"fontCharacter": "\\f1df"
13381338
}
13391339
},
1340-
"aws-schemas-schema": {
1340+
"aws-sagemaker-jupyter-lab": {
13411341
"description": "AWS Contributed Icon",
13421342
"default": {
13431343
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
13441344
"fontCharacter": "\\f1e0"
13451345
}
13461346
},
1347-
"aws-stepfunctions-preview": {
1347+
"aws-schemas-registry": {
13481348
"description": "AWS Contributed Icon",
13491349
"default": {
13501350
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
13511351
"fontCharacter": "\\f1e1"
13521352
}
1353+
},
1354+
"aws-schemas-schema": {
1355+
"description": "AWS Contributed Icon",
1356+
"default": {
1357+
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
1358+
"fontCharacter": "\\f1e2"
1359+
}
1360+
},
1361+
"aws-stepfunctions-preview": {
1362+
"description": "AWS Contributed Icon",
1363+
"default": {
1364+
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
1365+
"fontCharacter": "\\f1e3"
1366+
}
13531367
}
13541368
},
13551369
"walkthroughs": [
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Welcome to Lambda Local Development
1+
# Welcome to Lambda local development
22

3-
Learn how to view your Lambda Function locally, iterate, and deploy changes to the AWS Cloud.
3+
Learn how to view your Lambda function locally, iterate, and deploy changes to the AWS Cloud.
44

55
## Edit your Lambda function
66

@@ -9,11 +9,11 @@ Learn how to view your Lambda Function locally, iterate, and deploy changes to t
99

1010
## Manage your Lambda functions
1111

12-
- Select the AWS icon in the left sidebar and select **EXPLORER**
12+
- Select the AWS Toolkit icon in the left sidebar and select **EXPLORER**
1313
- In your desired region, select the Lambda dropdown menu:
14-
- To save and deploy a previously edited Lambda function, select the cloud deploy icon next to your Lambda function.
15-
- To remotely invoke a function, select the play icon next to your Lambda function.
14+
- To save and deploy a previously edited Lambda function, select the ![deploy](./deploy.svg) icon next to your Lambda function.
15+
- To remotely invoke a function, select the ![invoke](./invoke.svg) icon next to your Lambda function.
1616

17-
## Advanced Features
17+
## Advanced features
1818

1919
- To convert to a Lambda function to an AWS SAM application, select the ![createStack](./create-stack.svg) icon next to your Lambda function. For details on what AWS SAM is and how it can help you, see the [AWS Serverless Application Model Developer Guide](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html).

packages/core/src/lambda/activation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function activate(context: ExtContext): Promise<void> {
6161
)
6262

6363
const readmeUri = vscode.Uri.file(await getReadme())
64-
await vscode.commands.executeCommand('markdown.showPreview', readmeUri, vscode.ViewColumn.Two)
64+
await vscode.commands.executeCommand('markdown.showPreviewToSide', readmeUri)
6565
}
6666
}
6767
}

packages/core/src/lambda/commands/editLambda.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,25 @@ export async function openLambdaFolderForEdit(name: string, region: string) {
231231
}
232232

233233
export async function getReadme(): Promise<string> {
234-
const readmeSource = 'resources/markdown/lambdaEdit.md'
234+
const readmeSource = path.join('resources', 'markdown', 'lambdaEdit.md')
235235
const readmeDestination = path.join(lambdaTempPath, 'README.md')
236236
const readmeContent = await fs.readFileText(globals.context.asAbsolutePath(readmeSource))
237237
await fs.writeFile(readmeDestination, readmeContent)
238238

239-
// Put cloud deploy icon in the readme
240-
const createStackIconSource = 'resources/icons/aws/lambda/create-stack-light.svg'
239+
const createStackIconSource = path.join('resources', 'icons', 'aws', 'lambda', 'create-stack-light.svg')
241240
const createStackIconDestination = path.join(lambdaTempPath, 'create-stack.svg')
242241
await fs.copy(globals.context.asAbsolutePath(createStackIconSource), createStackIconDestination)
243242

243+
// Copy VS Code built-in icons
244+
const vscodeIconPath = path.join('resources', 'icons', 'vscode', 'light')
245+
246+
const invokeIconSource = path.join(vscodeIconPath, 'run.svg')
247+
const invokeIconDestination = path.join(lambdaTempPath, 'invoke.svg')
248+
await fs.copy(globals.context.asAbsolutePath(invokeIconSource), invokeIconDestination)
249+
250+
const deployIconSource = path.join(vscodeIconPath, 'cloud-upload.svg')
251+
const deployIconDestination = path.join(lambdaTempPath, 'deploy.svg')
252+
await fs.copy(globals.context.asAbsolutePath(deployIconSource), deployIconDestination)
253+
244254
return readmeDestination
245255
}

0 commit comments

Comments
 (0)