Skip to content

Commit 629f7ab

Browse files
justinmk3leigaolfangwade007gmeghraoPrateek Chauhan
committed
feat: CodeWhisperer
https://aws.amazon.com/codewhisperer Co-authored-by: Lei Gao <[email protected]> Co-authored-by: Wade Fang <[email protected]> Co-authored-by: Meghana Gunuganti <[email protected]> Co-authored-by: Prateek Chauhan <[email protected]> Co-authored-by: Sathish Selvaraj <[email protected]> Co-authored-by: Shao-Hua Lo <[email protected]> Co-authored-by: Stephen Yuan <[email protected]> Co-authored-by: Zoe Lin <[email protected]> Co-authored-by: Matt Lee <[email protected]> Co-authored-by: JadenSimon <[email protected]> Co-authored-by: Justin M. Keyes <[email protected]>
1 parent 9429f4e commit 629f7ab

File tree

113 files changed

+9975
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+9975
-38
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "[CodeWhisperer](https://aws.amazon.com/codewhisperer) uses machine learning to generate code suggestions from the existing code and comments in your IDE. Supported languages include: Java, Python, and JavaScript."
4+
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules/**
22
third-party
33
**/*.json
44
src/shared/telemetry/clienttelemetry.d.ts
5+
src/codewhisperer/client/codewhispererclient.d.ts
56
**/*.gen.ts
67
src/testFixtures/workspaceFolder/ts-plain-sam-app/
78
dist/**

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ src/shared/telemetry/vscodeTelemetry.json
2525

2626
# Auto generated Service Clients
2727
src/shared/telemetry/clienttelemetry.d.ts
28+
src/codewhisperer/client/codewhispererclient.d.ts
2829

2930
# Generated by tests
3031
src/testFixtures/**/bin

README.quickstart.cloud9.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Try the [AWS Code Sample Catalog](https://docs.aws.amazon.com/code-samples/lates
1717
- IoT explorer
1818
- Lambda functions
1919
- S3 explorer
20+
- [Developer Tools](#ui-components-dev-tools)
21+
- [CDK Explorer](#ui-components-cdk-expl)
22+
- [CodeWhisperer](#codewhisperer)
2023
- [AWS Serverless Applications (SAM)](#sam-and-lambda)
2124
- [`AWS:` Commands](#aws-commands)
2225

@@ -28,6 +31,32 @@ The **AWS Explorer** provides access to the AWS services that you can work with
2831

2932
## ![Overview, AWS Explorer](./resources/marketplace/cloud9/overview-aws-explorer-en.png)
3033

34+
## <a id="ui-components-dev-tools"></a>Developer Tools
35+
36+
The **Developer Tools** panel is a section for developer-focused tooling curated for working in an IDE. The **Developer Tools** panel can be found underneath the **AWS Explorer** when the **AWS icon** is selected in the **Activity bar**.
37+
38+
## { [Return to Top](#top) }
39+
40+
## <a id="ui-components-cdk-expl"></a>CDK Explorer
41+
42+
The **AWS CDK Explorer** enables you to work with [AWS Cloud Development Kit (CDK)](https://aws.amazon.com/cdk/) applications. It shows a top-level view of your CDK applications that have been sythesized in your workspace.
43+
44+
With the CDK explorer, you can navigate the CDK application's infrastructure stacks, resources, and policies.
45+
46+
For full details see the [AWS CDK Explorer](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/cdk-explorer.html) in the user guide.
47+
48+
{ [Return to Top](#top) }
49+
50+
## <a id="codewhisperer"></a>Amazon CodeWhisperer
51+
52+
**Amazon CodeWhisperer** provides inline code suggestions using machine learning and natural language processing on the contents of your current file. Supported languages include: Java, Python and Javascript.
53+
54+
Once enabled, CodeWhisperer will provide code suggestions automatically and can also be requested manually using option+c (mac) / alt+c (PC). To accept a suggestion and add it to your file, press Tab, Enter or click on it. To dismiss a suggestion, press escape or keep typing.
55+
56+
For more information, see [Amazon CodeWhisperer](https://aws.amazon.com/codewhisperer) in our user guide.
57+
58+
## { [Return to Top](#top) }
59+
3160
## <a id="sam-and-lambda"></a> AWS Serverless Applications
3261

3362
The AWS Toolkit enables you to develop [AWS serverless applications](https://aws.amazon.com/serverless/) locally. It also provides _Inline Actions_ in Cloud9 to do the following:

README.quickstart.vscode.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ See [Setup](#additional-setup-steps) for prerequisites. If you run into a proble
2121
- Lambda functions
2222
- S3 explorer
2323
- Step Functions
24-
- [CDK Explorer](#ui-components-cdk-expl)
24+
- [Developer Tools](#ui-components-dev-tools)
25+
- [CDK Explorer](#ui-components-cdk-expl)
26+
- [CodeWhisperer](#codewhisperer)
2527
- [AWS Serverless Applications (SAM)](#sam-and-lambda)
2628
- [Amazon CloudWatch Logs](#cloudwatchlogs)
2729
- [Amazon EventBridge Schemas](#eventbridge)
@@ -41,6 +43,14 @@ The **AWS Explorer** provides access to the AWS services that you can work with
4143

4244
{ [Return to Top](#top) }
4345

46+
## <a id="ui-components-dev-tools"></a>Developer Tools
47+
48+
The **Developer Tools** panel is a section for developer-focused tooling curated for working in an IDE. The **Developer Tools** panel can be found underneath the **AWS Explorer** when the **AWS icon** is selected in the **Activity bar**.
49+
50+
![Overview, Developer Tools](./resources/marketplace/vscode/overview-codewhisperer.png)
51+
52+
## { [Return to Top](#top) }
53+
4454
## <a id="ui-components-cdk-expl"></a>CDK Explorer
4555

4656
The **AWS CDK Explorer** enables you to work with [AWS Cloud Development Kit (CDK)](https://aws.amazon.com/cdk/) applications. It shows a top-level view of your CDK applications that have been sythesized in your workspace.
@@ -55,7 +65,19 @@ For full details see the [AWS CDK Explorer](https://docs.aws.amazon.com/toolkit-
5565

5666
{ [Return to Top](#top) }
5767

58-
---
68+
## <a id="codewhisperer"></a>Amazon CodeWhisperer
69+
70+
**Amazon CodeWhisperer** provides inline code suggestions using machine learning and natural language processing on the contents of your current file. Supported languages include: Java, Python and Javascript.
71+
72+
Once enabled, CodeWhisperer will provide code suggestions automatically and can also be requested manually using option+c (mac) / alt+c (PC). CodeWhisperer may provide multiple suggestions; use the left- and right-arrow to navigate between suggestions. To accept a suggestion and add it to your file, press Tab. To dismiss a suggestion, press escape or keep typing.
73+
74+
In addition to providing code suggestions within your current file, CodeWhisperer can scan your entire package to identify security issues. To initiate a security scan, go to the AWS CodeWhisperer section in the **Developer Tools** panel and select “Run security scan”. Results will be listed in the Problems panel.
75+
76+
![CodeWhisperer](./resources/marketplace/vscode/overview-codewhisperer.png)
77+
78+
For more information, see [Amazon CodeWhisperer](https://aws.amazon.com/codewhisperer) in our user guide.
79+
80+
{ [Return to Top](#top) }
5981

6082
## <a id="sam-and-lambda"></a> AWS Serverless Applications
6183

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
body {
2+
background-color: var(--vscode-panel-background);
3+
color: var(--vscode-terminal-foreground);
4+
resize: none;
5+
}
6+
7+
body.vscode-light p {
8+
color: #1d2021;
9+
}
10+
11+
body.vscode-dark p {
12+
color: #faf7ea;
13+
}
14+
15+
body.vscode-high-contrast p {
16+
color: #1d2021;
17+
}
18+
19+
body.vscode-light p code {
20+
color: #008000;
21+
white-space: pre-wrap;
22+
font-size: var(--vscode-editor-font-size);
23+
font-family: var(--vscode-editor-font-family);
24+
}
25+
26+
body.vscode-dark p code {
27+
color: #6a9955;
28+
white-space: pre-wrap;
29+
font-size: var(--vscode-editor-font-size);
30+
font-family: var(--vscode-editor-font-family);
31+
}
32+
33+
body.vscode-high-contrast p code {
34+
color: #008000;
35+
white-space: pre-wrap;
36+
font-size: var(--vscode-editor-font-size);
37+
font-family: var(--vscode-editor-font-family);
38+
}

package-lock.json

Lines changed: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)