Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
2e9e559
eslint: fix EOL rule for windows
mvcninja Aug 15, 2024
26c83ee
update package-lock.json
jpinkney-aws Oct 16, 2024
7d73e91
rebase
jpinkney-aws Oct 16, 2024
5b325d4
Added ability to poll the changes
Nov 17, 2024
bbe560a
Fix polling mechanism for DocDB explorer
Nov 29, 2024
b03ce85
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Dec 3, 2024
3d41ed8
update package-lock.json
Dec 4, 2024
a94fdd5
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Dec 5, 2024
174b92b
feat(docdb): add 'override' to [inspect.custom] method in cluster and…
Dec 6, 2024
e4876e3
test(docdb): add unit tests for dbClusterNode in dbClusterNode.test.ts
Dec 6, 2024
0d043ce
fix(tests): properly mock DocumentDBClient to satisfy TypeScript requ…
Dec 6, 2024
6c40a13
fix(docdb): handle missing clusters gracefully in getStatus method
Dec 6, 2024
5b8a309
fix(tests): mock parentNode with a refresh method to prevent TypeErro…
Dec 6, 2024
1dd2695
fix(docdb): Update dbInstanceNode on UI when status changed
Jan 3, 2025
3ef2673
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Jan 7, 2025
b165a7b
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Jan 7, 2025
54a6746
fix(docdb): resolve ESLint issues in DocDB files
Jan 9, 2025
e9f5204
refactor(test): remove unclear assertion for esult.lines in zip gene…
Jan 9, 2025
1f03083
chore (docdb): reduce log verbosity by changing some info logs to debug
Jan 9, 2025
b02a22d
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Jan 9, 2025
50fc468
fix(cleanup) Remove XML declaration line from .iml files
Jan 10, 2025
0cfd826
fix(docdb): fix jscpd errors
Jan 10, 2025
86d4469
fix(eslint) Revert eslint changes
Jan 10, 2025
7dd093b
fix(docdb) Fix package-lock changes
Jan 10, 2025
18a371b
Remove .iml files under textFixture directory
Jan 10, 2025
58bf5bf
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Jan 10, 2025
4ad1655
fix(test) Revert zipUtil test changes
Jan 10, 2025
2dc2363
fix(wizard) Revert fix wizard bug related changes
Jan 10, 2025
17b2e6a
remove redundant sessions varaible
chungjac Jan 14, 2025
410d38e
Merge branch 'master' into muaydin/docdb-polling-bug-fix
Jan 14, 2025
e5425e6
Merge pull request #6354 from chungjac/remove-session
chungjac Jan 14, 2025
b66b01a
add message after accept/reject action
chungjac Jan 13, 2025
d2cde47
fix(amazonq): max 20k char for inline supplementalContext (#6366)
leigaol Jan 14, 2025
613bf5f
feat(amazonq): capability to send new context commands to AB groups (…
spfink Jan 14, 2025
7c0b90e
feat(inline completion): enhance inline completion context fetching (…
Will-ShaoHua Jan 14, 2025
5962a67
refactor(inline suggestion): camel case supplemental context strategy…
Will-ShaoHua Jan 14, 2025
e5d4538
message now only in endSession
chungjac Jan 14, 2025
c6d3c12
fix(dev): Q developer menu opening wrong auth state #6351
hayemaxi Jan 14, 2025
63fafe3
build: normalize filepath slashes, eol consistency #6353
muaydin Jan 15, 2025
2b047ac
fix(amazonq): use server-side data to decide remaining code generatio…
siakmun-aws Jan 15, 2025
efedd96
ci(jscpd): improve output format #6373
Hweinstock Jan 15, 2025
dd1d8e1
test(amazonq): "edit README" E2E test case for /doc #6317
avi-alpert Jan 15, 2025
0d7ea7d
build(lint): add rule to prefer direct imports over index.ts #6372
Hweinstock Jan 15, 2025
2e424b3
test(amazonq): Add e2e tests for general amazon q chat panel (#6279)
jpinkney-aws Jan 15, 2025
d862a21
fix(sso): login with custom startUrl not allowed (#6368)
nkomonen-amazon Jan 15, 2025
12256f7
Merge pull request #6365 from chungjac/test-gen-completed-message
ashishrp-aws Jan 15, 2025
73c0926
fix(amazonq): unsupported languages test generation query (#6363)
ashishrp-aws Jan 15, 2025
e7341f2
Release 1.43.0
Jan 15, 2025
b9a2471
Release 3.42.0
Jan 15, 2025
8bed9a6
Update version to snapshot version: 1.44.0-SNAPSHOT
Jan 16, 2025
7da291a
Update version to snapshot version: 3.43.0-SNAPSHOT
Jan 16, 2025
86cd492
Merge release into master
Jan 16, 2025
f805f9b
telemetry(amazonq): calculate % of non-generated (user-written) code …
leigaol Jan 16, 2025
29e7509
fixing fileclick work not as expected issue
Randall-Jiang Jan 16, 2025
c293290
fix(amazonq): improve settings description #6382
leigaol Jan 16, 2025
62ef0e5
feat(amazonq): change active file context limit to 40k #6371
andrewyuq Jan 16, 2025
77abd41
addressed comment
Randall-Jiang Jan 16, 2025
b3d0662
add changelog
Randall-Jiang Jan 17, 2025
f53ca21
test(amazonq): messages at different remaining iteration counts #6381
siakmun-aws Jan 17, 2025
fae084b
telemetry(amazonq): unit test generation #6386
ashishrp-aws Jan 17, 2025
9617649
fix(lambda): AppBuilder messages #6362
seshubaws Jan 17, 2025
4b47b04
fix(amazonq): setMaven correctly #6384
dhasani23 Jan 17, 2025
062d24a
feat(amazonq): grouping options for code issues #6330
ctlai95 Jan 17, 2025
d55b8e1
perf(childprocess): track/monitor health of spawned processes #6304
Hweinstock Jan 17, 2025
49fb090
refactor(core): Make HttpResourceFetcher platform agnostic (#6379)
jpinkney-aws Jan 17, 2025
373bbfa
refactor(core): Improve httpResourceFetcher API
jpinkney-aws Jan 17, 2025
f727e0e
refactor(core): Remove composite resource fetcher
jpinkney-aws Jan 17, 2025
2bbc46a
revert(amazonq): defaultServiceConfig endpoint change #6392
avi-alpert Jan 17, 2025
16c0228
deps(amazonq): bump mynahui to 4.21.5 #6393
Jurredr Jan 17, 2025
5a97c89
Merge pull request #6390 from jpinkney-aws/fetcher
jpinkney-aws Jan 17, 2025
07ae50c
Update packages/amazonq/.changes/next-release/Bug Fix-34e877a1-d2ca-4…
Randall-Jiang Jan 17, 2025
f192573
fix(amazonq): codefix does not do error handling (#6307)
ctlai95 Jan 17, 2025
d7bfb5d
Merge pull request #6383 from Randall-Jiang/master
ashishrp-aws Jan 17, 2025
bcdfcdd
fix(amazonq): enable input after prompt is rejected, prevent iteratio…
avi-alpert Jan 20, 2025
2a20e3c
config(amazonq): lower timeout for auto reviews (#6397)
ctlai95 Jan 20, 2025
c767cee
refactor(core): Allow retries while fetching etags (#6402)
jpinkney-aws Jan 21, 2025
efeba57
ci(core): Request should not throw on 304 status (#6400)
jpinkney-aws Jan 21, 2025
01351dd
revert: cloud9 related code (#6376)
hayemaxi Jan 21, 2025
2837d80
fix(amazonq): /doc prompt refusal error message text update (#6408)
avi-alpert Jan 21, 2025
e11c27d
fix(amazonq): replace icons with text (#6398)
dhasani23 Jan 21, 2025
f4e0893
deps: update "aws-sdk" to v2.1692.0 #6340
valerena Jan 22, 2025
825d2fc
refactor(pollingset): make bad state impossible #6396
Hweinstock Jan 22, 2025
f004173
fix(notifications): dismiss command visible in command palette (#6407)
hayemaxi Jan 22, 2025
37717d6
fix(core): Could not fetch endpoints (#6418)
jpinkney-aws Jan 23, 2025
cefac6a
Release 3.43.0
Jan 23, 2025
6cea5f6
Release 1.44.0
Jan 23, 2025
fe18d97
Update version to snapshot version: 3.44.0-SNAPSHOT
Jan 23, 2025
0b08d6e
Update version to snapshot version: 1.45.0-SNAPSHOT
Jan 23, 2025
6dd3f87
Merge release into master
Jan 23, 2025
cf700b6
refactor(util): merge withRetries into waitUntil #6387
nkomonen-amazon Jan 23, 2025
61d6cb1
refactor: mark ExtContext as deprecated
justinmk3 Jan 24, 2025
ba3a4f7
fix(S3 View): Display bucket contents with specific IAM role policies…
avsthiago Jan 26, 2025
3f69e96
feat(ec2): graduate EC2 out of Experiments #6435
justinmk3 Jan 27, 2025
e54d549
fix(lint): remove extra space so that lint passes. (#6440)
Hweinstock Jan 27, 2025
0d8c8fc
ci: rename "jscpd" job to "lint-duplicate-code" #6443
justinmk3 Jan 27, 2025
2200b15
feat(release): check for marketplace update (#6426)
tomcat323 Jan 27, 2025
2ff5518
config(chat): try opt in implicit `@workspace` context once for treat…
Will-ShaoHua Jan 27, 2025
bdbd8e8
telemetry(amazonq): code fix events #6420
ctlai95 Jan 28, 2025
dca8c5d
fix(amazonq): security: disable auto linkify of text links in chat #6449
dogusata Jan 28, 2025
e95acf5
fix(amazonq): AB users with overridden customization can restore the …
spfink Jan 28, 2025
3f16d7d
fix(policychecks): use the selected credentials profile #6074
kevluu-aws Jan 28, 2025
b07ec98
feat(lambda): user can open CWL Live Tail from Lambda function #6423
valerena Jan 28, 2025
3c40aca
feat(q-dev): /dev can be configured to run code, tests #6453
neilk-aws Jan 29, 2025
085ad38
test(amazonq): E2E tests for /test #6431
chungjac Jan 29, 2025
d6acae9
build(web): update web mode deps (#6460)
nkomonen-amazon Jan 29, 2025
3a03e95
perf(amazonq): Adding backoff and retry for /test APIs (#6461)
laileni-aws Jan 29, 2025
30face9
test(flaky): avoid relying on race condition for tested behavior #6452
Hweinstock Jan 30, 2025
a1810f8
Release 3.44.0
Jan 30, 2025
7400b54
Release 1.45.0
Jan 30, 2025
fef7c74
Update version to snapshot version: 3.45.0-SNAPSHOT
Jan 30, 2025
571adce
Update version to snapshot version: 1.46.0-SNAPSHOT
Jan 30, 2025
349fe04
Merge release into master
Jan 30, 2025
82cae41
test(flaky): skip all performance tests. (#6459)
Hweinstock Jan 31, 2025
21c7f12
feat(amazonq): migrate /doc and /dev to zipStream (#6472)
avi-alpert Jan 31, 2025
00680f7
fix(release): added beta check and dummy version logics (#6470)
tomcat323 Feb 1, 2025
7af0b83
fix(amazonq): add closing bracket to Amazon Q inline example #6454
brandonskiser Feb 3, 2025
30ea80a
test(core): assertTelemetry should accept partial metrics (#6477)
jpinkney-aws Feb 3, 2025
25006e3
fix(amazonq): broken citation links in Q Chat #6487
dogusata Feb 3, 2025
f7f98bc
align placeholder text across IDEs
chungjac Feb 3, 2025
52c0551
remove TODO
chungjac Feb 3, 2025
0c03a1a
Merge pull request #6492 from chungjac/placeholder-text-consistency
chungjac Feb 3, 2025
a41ca7a
test: disable feature dev unstable e2e tests (#6491)
chengoramazon Feb 4, 2025
8533cf8
perf(amazonq): Removing flaky test case in generateZipTestGen functio…
laileni-aws Feb 4, 2025
e1413a9
fix(amazonq): Fix LSP start failure in al2023 arm64 (#6488)
leigaol Feb 4, 2025
ef9abfc
feat(toolkit): Enhance autocomplete for variable and JSONata expressi…
silviac98 Feb 4, 2025
e3e8fcd
feat(amazonq): Add description and github issue link to feedback form…
dogusata Feb 4, 2025
5277848
perf(amazonq): Revert backoff and retry for /test APIs (#6461) (#6496)
laileni-aws Feb 4, 2025
9afc587
telemetry(amazonq): add doc generation V2 telemetry (#6427)
KevinDing1 Feb 4, 2025
50c9121
feat(amazonq): pre-fetch next recommendations for inline completions …
zixlin7 Feb 4, 2025
d8b3673
Merge branch 'master' into muaydin/docdb-polling-bug-fix
alexey-temnikov Feb 4, 2025
60a5da4
pollingSet method - `start` has been removed, adjusted code to use pr…
Feb 5, 2025
874eb41
Merge remote-tracking branch 'origin/muaydin/docdb-polling-bug-fix' i…
Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Resource Explorer: S3 tree view now shows bucket contents correctly, even when restricted to root prefix."
}
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,15 @@ module.exports = {
message:
'Avoid child_process, use ChildProcess from `shared/utilities/processUtils.ts` instead.',
},
{
name: '..',
message:
'Avoid importing from index.ts files as it can lead to circular dependencies. Import from the module directly instead.',
},
],
},
],

'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
}
21 changes: 18 additions & 3 deletions .github/workflows/filterDuplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* the program exits with an error and logs the filtered report to console.
*
* Usage:
* node filterDuplicates.js run [path_to_git_diff] [path_to_jscpd_report]
* node filterDuplicates.js run [path_to_git_diff] [path_to_jscpd_report] [commit_hash] [repo_name]
*
* Tests:
* node filterDuplicates.js test
Expand Down Expand Up @@ -84,25 +84,40 @@ function filterDuplicates(report, changes) {
return duplicates
}

function formatDuplicates(duplicates, commitHash, repoName) {
const baseUrl = `https://github.com/${repoName}`
return duplicates.map((dupe) => {
return {
first: formUrl(dupe.firstFile, commitHash),
second: formUrl(dupe.secondFile, commitHash),
numberOfLines: dupe.lines,
}
})
function formUrl(file, commitHash) {
return `${baseUrl}/blob/${commitHash}/${file.name}#L${file.start}-L${file.end}`
}
}

async function run() {
const rawDiffPath = process.argv[3]
const jscpdReportPath = process.argv[4]
const commitHash = process.argv[5]
const repoName = process.argv[6]
const changes = await parseDiff(rawDiffPath)
const jscpdReport = JSON.parse(await fs.readFile(jscpdReportPath, 'utf8'))
const filteredDuplicates = filterDuplicates(jscpdReport, changes)

console.log('%s files changes', changes.size)
console.log('%s duplicates found', filteredDuplicates.length)
if (filteredDuplicates.length > 0) {
console.log(filteredDuplicates)
console.log(formatDuplicates(filteredDuplicates, commitHash, repoName))
process.exit(1)
}
}

/**
* Mini-test Suite
*/
console.log(__dirname)
const testDiffFile = path.resolve(__dirname, 'test/test_diff.txt')
let testCounter = 0
function assertEqual(actual, expected) {
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- run: npm run testCompile
- run: npm run lint

jscpd:
lint-duplicate-code:
needs: lint-commits
if: ${{ github.event_name == 'pull_request'}}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -101,7 +101,10 @@ jobs:
path: ./jscpd-report.json

- name: Check for Duplicates
run: node "$GITHUB_WORKSPACE/.github/workflows/filterDuplicates.js" run diff_output.txt jscpd-report.json
env:
COMMIT_HASH: ${{ github.sha}}
REPO_NAME: ${{ github.repository }}
run: node "$GITHUB_WORKSPACE/.github/workflows/filterDuplicates.js" run diff_output.txt jscpd-report.json $COMMIT_HASH $REPO_NAME

macos:
needs: lint-commits
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ packages/amazonq/package.nls.json
packages/amazonq/resources

# Icons
packages/*/resources/icons/cloud9/generated/**
packages/*/resources/fonts/aws-toolkit-icons.woff
packages/*/resources/css/icons.css

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ If you are contribuing visual assets from other open source repos, the source re
## Using new vscode APIs

The minimum required vscode version specified in [package.json](https://github.com/aws/aws-toolkit-vscode/blob/07119655109bb06105a3f53bbcd86b812b32cdbe/package.json#L16)
is decided by the version of vscode running in Cloud9 and other vscode-compatible targets.
is decided by the version of vscode running in other supported vscode-compatible targets (e.g. web).

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:

Expand Down
53 changes: 53 additions & 0 deletions buildspec/release/70checkmarketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 0.2

phases:
install:
runtime-versions:
nodejs: 16

commands:
- apt update
- apt install -y wget gpg
- curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
- install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
- sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
- apt update
- apt install -y code

pre_build:
commands:
# Check for implicit env vars passed from the release pipeline.
- test -n "${TARGET_EXTENSION}"

build:
commands:
- VERSION=$(node -e "console.log(require('./packages/${TARGET_EXTENSION}/package.json').version);")
# get extension name, if in beta, use some hard-coded recent version
- |
if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
extension_name="amazonwebservices.amazon-q-vscode"
[ "$STAGE" != "prod" ] && VERSION="1.43.0" || true
elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
extension_name="amazonwebservices.aws-toolkit-vscode"
[ "$STAGE" != "prod" ] && VERSION="3.42.0" || true
else
echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
exit 1
fi
if [ "$STAGE" != "prod" ]; then
echo "checkmarketplace: Non-production stage detected. Installing hardcoded version '${VERSION}'."
fi
# keep installing the desired extension version until successful. Otherwise fail on codebuild timeout (1 hour).
- |
while true; do
code --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
code --install-extension "${extension_name}@${VERSION}" --no-sandbox --user-data-dir /tmp/vscode || true
cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
if [ "${cur_version}" = "${VERSION}" ]; then
echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"
break
else
echo "checkmarketplace: Expected extension version '${VERSION}' has not been successfully installed. Retrying..."
fi
sleep 120 # Wait for 2 minutes before retrying
done
139 changes: 0 additions & 139 deletions cloud9-toolkit-install.sh

This file was deleted.

11 changes: 4 additions & 7 deletions docs/CODE_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ that is a net cost.
- Telemetry: "active" vs "passive"
- Active (`passive:false`) metrics are those intended to appear in DAU count.
- Icons:
- Where possible, use IDE-specific standard icons (e.g. standard VSCode
standard icons in VSCode, and Cloud9 standard icons in Cloud9). The typical
(maintainable) way to do this is to use _named_ icons (what VSCode calls
- Where possible, use standard VSCode icons. The typical (maintainable)
way to do this is to use _named_ icons (what VSCode calls
[codicons](https://microsoft.github.io/vscode-codicons/)) as opposed to
icons shipped with the Toolkit build and referenced by _path_.
- For cases where icons must be statically defined (package.json), if Cloud9
does not support the VSCode standard icon, use the Cloud9 icon.
- Changelog guidelines
- Prefer active voice: "You can do X" instead of "X can be done"
- Avoid unnecessary use of `lodash` (which we may remove in the future).
Expand Down Expand Up @@ -240,11 +237,11 @@ _See also [arch_develop.md](./arch_develop.md#exceptions)._

- PREFER:
```ts
things.filter(o => o.isFoo)
things.filter((o) => o.isFoo)
```
- INSTEAD OF:
```ts
things.filter(thing => thing.isFoo)
things.filter((thing) => thing.isFoo)
```

## User settings
Expand Down
2 changes: 0 additions & 2 deletions docs/arch_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ If you must define a new key (is it _really_ necessary?), follow these guideline
These keys are currently set by the core/ package, but many of them may eventually be migrated to
toolkit/ or amazonq/ if appropriate.

- `isCloud9`: This is hardcoded by Cloud9 itself, not the Toolkit.
- Cloud9 _does not support setContext_. So this is the only usable key there.
- `aws.codecatalyst.connected`: CodeCatalyst connection is active.
- `aws.codewhisperer.connected`: CodeWhisperer connection is active.
- `aws.codewhisperer.connectionExpired`: CodeWhisperer connection is active, but the connection is expired.
Expand Down
8 changes: 1 addition & 7 deletions docs/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ All icons that are used in the extensions can be found in `resources/icons`.

A [build script](../scripts/generateIcons.ts) generates extension artifacts in [core/](../packages/core/):

- `resources/icons/cloud9/generated`
- `resources/fonts/aws-toolkit-icons.woff`
- `resources/css/icons.css`
- `contributes.icons` in [amazonq package.json](../packages/amazonq/package.json) and [toolkit package.json](../packages/toolkit/package.json)
Expand All @@ -31,7 +30,7 @@ If your desired icon does not work well as a font, see [Theme Overrides](#theme-

## Identifiers

Icons (except those in `cloud9`) can be referenced within the Toolkit by concatenating the icon path with hyphens, omitting the 'theme' if applicable.
Icons can be referenced within the Toolkit by concatenating the icon path with hyphens, omitting the 'theme' if applicable.

Examples:

Expand All @@ -50,11 +49,6 @@ For example, if I wanted to use a special App Runner service icon, then I need t
- `resources/icons/aws/dark/apprunner-service.svg`
- `resources/icons/aws/light/apprunner-service.svg`

A similar format is used for overriding icons only on Cloud9:

- `resources/icons/cloud9/dark/aws-apprunner-service.svg`
- `resources/icons/cloud9/light/aws-apprunner-service.svg`

These icons will **not** be usuable as Codicons or as font icons.

## Third Party
Expand Down
Loading
Loading