Skip to content

Commit b0b7bd1

Browse files
committed
Merge branch 'master' into ctlai95/update-zip-stream
2 parents 6f9e995 + 09bfb14 commit b0b7bd1

File tree

491 files changed

+13226
-6599
lines changed

Some content is hidden

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

491 files changed

+13226
-6599
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ src/shared/telemetry/clienttelemetry.d.ts
1111
src/codewhisperer/client/codewhispererclient.d.ts
1212
src/codewhisperer/client/codewhispereruserclient.d.ts
1313
src/amazonqFeatureDev/client/featuredevproxyclient.d.ts
14+
src/auth/sso/oidcclientpkce.d.ts
1415
src/testFixtures/**
1516
packages/core/src/shared/telemetry/clienttelemetry.d.ts
1617
packages/core/src/codewhisperer/client/codewhispererclient.d.ts
1718
packages/core/src/codewhisperer/client/codewhispereruserclient.d.ts
1819
packages/core/src/amazonqFeatureDev/client/featuredevproxyclient.d.ts
20+
packages/core/src/auth/sso/oidcclientpkce.d.ts
1921
packages/core/src/testFixtures/**

.eslintrc.js

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,27 @@ module.exports = {
149149
},
150150
{ lineEndings: 'unix' },
151151
],
152+
152153
'aws-toolkits/no-only-in-tests': 'error',
153-
// The following will place an error on the `fs-extra` import since we do not want it to be used for browser compatibility reasons.
154-
// "no-restricted-imports": [
155-
// "error",
156-
// {
157-
// "name": "fs-extra",
158-
// "message": "Avoid fs-extra, use FileSystemCommon. Notify the Toolkit team if your required functionality is not available."
159-
// }
160-
// ],
154+
'aws-toolkits/no-await-on-vscode-msg': 'error',
155+
156+
'no-restricted-imports': [
157+
'error',
158+
{
159+
patterns: [
160+
{
161+
group: ['**/core/dist/*'],
162+
message:
163+
"Avoid importing from the core lib's dist/ folders; please use directly from the core lib defined exports.",
164+
},
165+
],
166+
},
167+
// The following will place an error on the `fs-extra` import since we do not want it to be used for browser compatibility reasons.
168+
// {
169+
// name: 'fs-extra',
170+
// message:
171+
// 'Avoid fs-extra, use FileSystemCommon. Notify the Toolkit team if your required functionality is not available.',
172+
// },
173+
],
161174
},
162175
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ packages/core/src/codewhisperer/ @aws/codewhisperer-team
33
packages/core/src/amazonqFeatureDev/ @aws/earlybird
44
packages/core/src/codewhispererChat/ @aws/dexp
55
packages/core/src/amazonq/ @aws/dexp
6+
packages/core/src/accessanalyzer/ @aws/access-analyzer

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ labels: bug
1616

1717
## Expected behavior
1818

19-
## System details (run the `AWS: About Toolkit` command)
19+
## System details (run `AWS: About` and/or `Amazon Q: About`)
2020

2121
- OS:
2222
- Visual Studio Code version:
2323
- AWS Toolkit version:
24+
- Amazon Q version:

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for AWS Toolkit
3+
about: Suggest an idea for AWS Toolkit or Amazon Q
44
labels: feature-request
55
---
66

.github/ISSUE_TEMPLATE/guidance_request.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ about: Ask for guidance, "how to", or other questions
44
labels: guidance
55
---
66

7-
## System details (run the `AWS: About Toolkit` command)
7+
## System details (run `AWS: About` and/or `Amazon Q: About`)
88

99
- OS:
1010
- Visual Studio Code version:
1111
- AWS Toolkit version:
12+
- Amazon Q version:
1213

1314
## Question
1415

.github/workflows/release.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
outputs:
2525
feature: ${{ steps.build.outputs.feature }}
2626
tagname: ${{ steps.build.outputs.tagname }}
27-
version: ${{ steps.build.outputs.version }}
28-
changes: ${{ steps.build.outputs.changes }}
27+
toolkit_version: ${{ steps.build.outputs.toolkit_version }}
28+
amazonq_version: ${{ steps.build.outputs.amazonq_version }}
29+
toolkit_changes: ${{ steps.build.outputs.toolkit_changes }}
30+
amazonq_changes: ${{ steps.build.outputs.amazonq_changes }}
2931
steps:
3032
- uses: actions/checkout@v4
3133
with:
@@ -49,10 +51,11 @@ jobs:
4951
echo "FEAT_NAME=" >> $GITHUB_ENV
5052
echo "TAG_NAME=prerelease" >> $GITHUB_ENV
5153
- run: npm ci
52-
- name: vsix # TODO: For packages/toolkit release only
54+
- name: vsix
5355
run: |
54-
npm run createRelease # Generate CHANGELOG.md
56+
npm run createRelease -w packages/toolkit -w packages/amazonq # Generate CHANGELOG.md
5557
npm run -w packages/toolkit package -- --feature "$FEAT_NAME"
58+
npm run -w packages/amazonq package -- --feature "$FEAT_NAME"
5659
- uses: actions/upload-artifact@v4
5760
with:
5861
name: artifacts
@@ -61,28 +64,39 @@ jobs:
6164
- name: Export outputs
6265
id: build
6366
run: |
67+
write_package_info() {
68+
PKG_NAME=$1
69+
PKG_DISPLAY_NAME=$(grep -m 1 displayName packages/${PKG_NAME}/package.json | grep -o '[a-zA-z][^\"]\+' | tail -n1)
70+
echo "${PKG_NAME}_version=$(grep -m 1 version packages/${PKG_NAME}/package.json | grep -o '[0-9][^\"]\+' | sed 's/-SNAPSHOT//')" >> $GITHUB_OUTPUT
71+
echo "${PKG_NAME}_changes<<EOF" >> $GITHUB_OUTPUT
72+
# Add extension display name to the topmost changelog section.
73+
cat packages/${PKG_NAME}/CHANGELOG.md | perl -ne 'BEGIN{$/="\n\n"} print; exit if $. == 2' | sed -e "1 s/## /## ${PKG_DISPLAY_NAME} - /" >> $GITHUB_OUTPUT
74+
echo 'EOF' >> $GITHUB_OUTPUT
75+
}
6476
echo "feature=$FEAT_NAME" >> $GITHUB_OUTPUT
6577
echo "tagname=$TAG_NAME" >> $GITHUB_OUTPUT
66-
echo "version=$(grep -m 1 version packages/toolkit/package.json | grep -o '[0-9][^\"]\+' | sed 's/-SNAPSHOT//')" >> $GITHUB_OUTPUT
67-
echo 'changes<<EOF' >> $GITHUB_OUTPUT
68-
cat CHANGELOG.md | perl -ne 'BEGIN{$/="\n\n"} print; exit if $. == 2' >> $GITHUB_OUTPUT
69-
echo 'EOF' >> $GITHUB_OUTPUT
78+
write_package_info toolkit
79+
write_package_info amazonq
7080
7181
publish:
7282
needs: [package]
7383
runs-on: ubuntu-latest
7484
env:
85+
#
7586
# For `gh`.
87+
#
7688
GH_REPO: ${{ github.repository }}
77-
# For `gh`.
7889
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7990
FEAT_NAME: ${{ needs.package.outputs.feature }}
8091
TAG_NAME: ${{ needs.package.outputs.tagname }}
81-
AWS_TOOLKIT_VERSION: ${{ needs.package.outputs.version }}
92+
AWS_TOOLKIT_VERSION: ${{ needs.package.outputs.toolkit_version }}
93+
AMAZON_Q_VERSION: ${{ needs.package.outputs.amazonq_version }}
94+
#
8295
# Used in release_notes.md
96+
#
8397
BRANCH: ${{ github.ref_name }}
84-
# Used in release_notes.md
85-
AWS_TOOLKIT_CHANGES: ${{ needs.package.outputs.changes }}
98+
AWS_TOOLKIT_CHANGES: ${{ needs.package.outputs.toolkit_changes }}
99+
AMAZON_Q_CHANGES: ${{ needs.package.outputs.amazonq_changes }}
86100
permissions:
87101
contents: write
88102
steps:
@@ -94,7 +108,7 @@ jobs:
94108
# "prerelease" (main branch) or "pre-<feature>"
95109
if: "env.TAG_NAME == 'prerelease' || startsWith(env.TAG_NAME, 'pre-')"
96110
run: |
97-
echo "SUBJECT=AWS Toolkit ${AWS_TOOLKIT_VERSION}: ${FEAT_NAME:-${TAG_NAME}}" >> $GITHUB_ENV
111+
echo "SUBJECT=AWS IDE Extensions: ${FEAT_NAME:-${TAG_NAME}}" >> $GITHUB_ENV
98112
gh release delete "$TAG_NAME" --cleanup-tag --yes || true
99113
# git push origin :"$TAG_NAME" || true
100114
- name: Publish Prerelease

.github/workflows/release_notes.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
_This is an **unsupported preview build** of the `${BRANCH}` branch of AWS Toolkit._
1+
This is an **unsupported preview build** of the `${BRANCH}` branch of AWS IDE Extensions for VSCode.
22

33
# Install
44

5-
1. Download the vsix file from "Assets" below.
6-
2. In VSCode, run `Extensions: Install from VSIX...` and choose the vsix file.
5+
1. Download the vsix file(s) from "Assets" below.
6+
- Amazon Q $AMAZON_Q_VERSION is provided by `amazon-q-vscode….vsix`
7+
- AWS Toolkit $AWS_TOOLKIT_VERSION is provided by `aws-toolkit-vscode….vsix`
8+
2. Run `Extensions: Install from VSIX...` from the VSCode [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and choose the vsix file(s).
79

810
# Changes
911

1012
${AWS_TOOLKIT_CHANGES}
1113

14+
${AMAZON_Q_CHANGES}
15+
1216
## Previous changes
1317

14-
- See [CHANGELOG.md](CHANGELOG.md)
18+
- [AWS Toolkit changelog](/packages/toolkit/CHANGELOG.md)
19+
- [Amazon Q changelog](/packages/amazonq/CHANGELOG.md)

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ packages/core/src/testFixtures/**/bin
3838
packages/core/src/testFixtures/**/obj
3939

4040
# Generated by copyFiles.ts
41-
packages/*/CHANGELOG.md
4241
packages/*/LICENSE
4342
packages/*/NOTICE
4443
packages/toolkit/package.nls.json
4544
packages/toolkit/resources
45+
packages/amazonq/package.nls.json
4646
packages/amazonq/resources
4747

4848
# Icons

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,14 @@ The `aws.dev.forceDevMode` setting enables or disables Toolkit "dev mode". Witho
315315
316316
### Logging
317317
318-
- Use the `aws.dev.logfile` setting to set the logfile path to a fixed location, so you can easily
319-
follow and filter the logfile using shell tools like `tail` and `grep`. For example in
320-
settings.json,
318+
- Use `getLogger()` to log debugging messages, warnings, etc.
319+
- Example: `getLogger().error('topic: widget failed: %O', { foo: 'bar', baz: 42 })`
320+
- Log messages are written to the extension Output channel, which you can view in vscode by visiting the "Output" panel and selecting `AWS Toolkit Logs` or `Amazon Q Logs`.
321+
- While viewing the Output channel (`AWS Toolkit Logs` or `Amazon Q Logs`) in vscode:
322+
- Click the "gear" icon to [select a log level](https://github.com/aws/aws-toolkit-vscode/pull/4859) ("Debug", "Info", "Error", …).
323+
- Click the "..." icon to open the log file.
324+
- Use the `aws.dev.logfile` setting to set the logfile path to a fixed location, so you can follow
325+
and filter logs using shell tools like `tail` and `grep`. For example in settings.json,
321326
```
322327
"aws.dev.logfile": "~/awstoolkit.log",
323328
```
@@ -328,7 +333,6 @@ The `aws.dev.forceDevMode` setting enables or disables Toolkit "dev mode". Witho
328333
- Use the `AWS (Developer): Watch Logs` command to watch and filter Toolkit logs (including
329334
telemetry) in VSCode.
330335
- Only available if you enabled "dev mode" (`aws.dev.forceDevMode` setting, see above).
331-
- Sets `aws.logLevel` to "debug".
332336
- Enter text in the Debug Console filter box to show only log messages with that text. <br/>
333337
<img src="./docs/images/debug-console-filter.png" alt="VSCode Debug Console" width="320"/>
334338

0 commit comments

Comments
 (0)