Skip to content

Commit 877b4ff

Browse files
committed
merge upstream changes
2 parents 6d332a3 + 4d6cd41 commit 877b4ff

File tree

78 files changed

+2967
-1930
lines changed

Some content is hidden

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

78 files changed

+2967
-1930
lines changed

.changes/1.80.0.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"date": "2023-07-05",
3+
"version": "1.80.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Fix function that determined who was a first time user"
8+
}
9+
]
10+
}

.changes/1.81.0.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"date": "2023-07-13",
3+
"version": "1.81.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "codewhisperer: improper request format when sending empty supplemental context"
8+
},
9+
{
10+
"type": "Feature",
11+
"description": "CodeWhisperer: Improve suggestion quality with enhanced file context fetching"
12+
}
13+
]
14+
}

.changes/1.82.0.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"date": "2023-07-26",
3+
"version": "1.82.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "CodeWhisperer: issue with fetching enhanced file context"
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "User setting for \"Share CodeWhisperer Content With AWS\" was not reflected in workspace-level settings"
12+
},
13+
{
14+
"type": "Feature",
15+
"description": "CodeWhisperer: Improve Java suggestion quality with enhanced file context fetching"
16+
},
17+
{
18+
"type": "Feature",
19+
"description": "Lambda \"Download\" action now expects \".mjs\" extension for Node18+ lambdas"
20+
}
21+
]
22+
}

.changes/1.83.0.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"date": "2023-08-03",
3+
"version": "1.83.0",
4+
"entries": [
5+
{
6+
"type": "Feature",
7+
"description": "IAM Identity Center (SSO): log a warning if SSO user is not linked to an account"
8+
}
9+
]
10+
}
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": "misleading error when downloading a Lambda to a workspace without a folder"
4+
}

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
name: test macOS
1515
runs-on: macos-latest
1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
node-version: [16.x]
1920
vscode-version: [minimum, stable, insiders]

.vscode/launch.json

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,13 @@
2424
"preLaunchTask": "watch"
2525
},
2626
{
27-
"name": "Attach to ASL Server",
28-
"type": "node",
29-
"request": "attach",
30-
"port": 6009,
31-
"restart": true,
32-
"outFiles": ["${workspaceRoot}/dist/src/stepFunctions/asl/**.js"]
33-
},
34-
{
35-
"name": "Attach to SSM Document Language Server",
36-
"type": "node",
37-
"request": "attach",
38-
"port": 6010,
39-
"restart": true,
40-
"outFiles": ["${workspaceRoot}/dist/src/ssmDocument/ssm/ssmServer.js"]
27+
"name": "Extension (web)",
28+
"type": "pwa-extensionHost",
29+
"debugWebWorkerHost": true,
30+
"request": "launch",
31+
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionDevelopmentKind=web"],
32+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
33+
"preLaunchTask": "${defaultBuildTask}"
4134
},
4235
{
4336
"name": "Extension (webpack)",
@@ -145,6 +138,22 @@
145138
"program": "${workspaceFolder}/scripts/lint/testLint.ts",
146139
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
147140
"preLaunchTask": "${defaultBuildTask}"
141+
},
142+
{
143+
"name": "Attach to ASL Server",
144+
"type": "node",
145+
"request": "attach",
146+
"port": 6009,
147+
"restart": true,
148+
"outFiles": ["${workspaceRoot}/dist/src/stepFunctions/asl/**.js"]
149+
},
150+
{
151+
"name": "Attach to SSM Document Language Server",
152+
"type": "node",
153+
"request": "attach",
154+
"port": 6010,
155+
"restart": true,
156+
"outFiles": ["${workspaceRoot}/dist/src/ssmDocument/ssm/ssmServer.js"]
148157
}
149158
],
150159
"compounds": [

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 1.83.0 2023-08-03
2+
3+
- **Feature** IAM Identity Center (SSO): log a warning if SSO user is not linked to an account
4+
5+
## 1.82.0 2023-07-26
6+
7+
- **Bug Fix** CodeWhisperer: issue with fetching enhanced file context
8+
- **Bug Fix** User setting for "Share CodeWhisperer Content With AWS" was not reflected in workspace-level settings
9+
- **Feature** CodeWhisperer: Improve Java suggestion quality with enhanced file context fetching
10+
- **Feature** Lambda "Download" action now expects ".mjs" extension for Node18+ lambdas
11+
12+
## 1.81.0 2023-07-13
13+
14+
- **Bug Fix** codewhisperer: improper request format when sending empty supplemental context
15+
- **Feature** CodeWhisperer: Improve suggestion quality with enhanced file context fetching
16+
17+
## 1.80.0 2023-07-05
18+
19+
- **Bug Fix** Fix function that determined who was a first time user
20+
121
## 1.79.0 2023-06-30
222

323
- **Feature** New Add Connection workflow

CONTRIBUTING.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,21 @@ Then clone the repository and install NPM packages:
3535

3636
### Run
3737

38-
You can run the extension from Visual Studio Code:
38+
To run the extension from VSCode as a Node.js app:
3939

4040
1. Select the Run panel from the sidebar.
4141
2. From the dropdown at the top of the Run pane, choose `Extension`.
42-
3. Press `F5` to launch a new instance of Visual Studio Code with the extension installed and the debugger attached.
42+
3. Press `F5` to launch a new instance of VSCode with the extension installed and the debugger attached.
43+
44+
To run the extension from VSCode in "web mode" (a browser app, or "PWA"):
45+
46+
1. Select the Run panel from the sidebar.
47+
2. From the dropdown at the top of the Run pane, choose `Extension (web)`.
48+
3. Press `F5` to launch a new instance of VSCode (web mode) with the extension installed and the debugger attached.
4349

4450
### Build
4551

46-
When you launch the extension or run tests from Visual Studio Code, it will automatically build the extension and watch for changes.
52+
When you launch the extension or run tests from VSCode, it will automatically build the extension and watch for changes.
4753

4854
You can also use these NPM tasks (see `npm run` for the full list):
4955

@@ -118,7 +124,7 @@ You can also use these NPM tasks (see `npm run` for the full list):
118124
See [TESTPLAN.md](./docs/TESTPLAN.md) to understand the project's test
119125
structure, mechanics and philosophy.
120126
121-
You can run tests directly from Visual Studio Code:
127+
You can run tests directly from VSCode:
122128
123129
1. Select `View > Debug`, or select the Debug pane from the sidebar.
124130
2. From the dropdown at the top of the Debug pane, select the `Extension Tests` configuration.
@@ -343,7 +349,7 @@ Webviews can be hot-reloaded (updated without restarting the extension) by runni
343349

344350
### Font generation
345351

346-
For extensions to contribute their own codicons, VS Code requires a font file as well as how that font maps to codicon IDs. The mapping is found in `package.json` under the `icons` contribution point. Icons located in `resources/icons` are stitched together at build-time into a single font, automatically adding mappings to `package.json`. More information can be found [here](docs/icons.md).
352+
For extensions to contribute their own codicons, VSCode requires a font file as well as how that font maps to codicon IDs. The mapping is found in `package.json` under the `icons` contribution point. Icons located in `resources/icons` are stitched together at build-time into a single font, automatically adding mappings to `package.json`. More information can be found [here](docs/icons.md).
347353

348354
As a simple example, let's say I wanted to add a new icon for CloudWatch log streams. I would do the following:
349355

@@ -373,6 +379,18 @@ Note therefore:
373379
2. `HEAD` implies that the URL depends on the current _default branch_ (i.e.
374380
`master`). Changes to other branches won't affect the marketplace page.
375381

382+
## Using new vscode APIs
383+
384+
The minimum required vscode version specified in [package.json](https://github.com/aws/aws-toolkit-vscode/blob/07119655109bb06105a3f53bbcd86b812b32cdbe/package.json#L16)
385+
is decided by the version of vscode running in Cloud9 and other vscode-compatible targets.
386+
387+
But you can still use the latest vscode APIs, by checking the current running vscode version. For example, to use a vscode 1.64 API:
388+
389+
1. Check the vscode version: `semver.gte(vscode.version, '1.64.0')`
390+
2. Disable the feature if is too old. That could mean just skipping the code entirely, or showing a different UI.
391+
392+
Full example: https://github.com/aws/aws-toolkit-vscode/blob/7cb97a2ef0a765862d21842693967070b0dcdd49/src/shared/credentials/defaultCredentialSelectionDataProvider.ts#L54-L76
393+
376394
## Importing icons from other open source repos
377395

378396
If you are contribuing visual assets from other open source repos, the source repo must have a compatible license (such as MIT), and we need to document the source of the images. Follow these steps:

0 commit comments

Comments
 (0)