Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
8cd876d
feat(lambda): Add Remote debugging support to Lambda Remote Invoke (#…
roger-zhangg Jul 16, 2025
3f34419
fix: update Q profile and customizations on language-servers crash re…
floralph Jul 12, 2025
da9755a
test(lambda): Remove duplicate code in Lambda tests (#7672)
rhamilt Jul 16, 2025
fdf1849
Merge branch 'master' into floralph/V1787412020
floralph Jul 16, 2025
26c5a6b
fix tests
floralph Jul 16, 2025
85f5045
Fix lint issues
floralph Jul 16, 2025
b39ab4e
feat(sagemaker): Merge sagemaker to master (#7681)
laileni-aws Jul 16, 2025
2eb0891
fix(sagemaker): Fix race-condition with multiple remote spaces trying…
aws-asolidu Jul 16, 2025
ef702fa
Release 3.69.0
Jul 16, 2025
9923793
fix(amazonq): Reduce plugin start-up latency
tsmithsz Jul 15, 2025
c267700
Update version to snapshot version: 3.70.0-SNAPSHOT
Jul 16, 2025
b7e8494
fix: should check if partialResultToken is empty for EDITS trigger on…
atonaamz Jul 16, 2025
7ba15ce
feature(amazonq): start rotating logging to disk with cleanup
abhraina-aws Jul 17, 2025
d0bcc40
fix(amazonq): should check if partialResultToken is empty for EDITS t…
atonaamz Jul 17, 2025
c6c5d76
fix(amazonq): remove feature flag for CodeReview tool, update change …
singhAws Jul 17, 2025
f07287d
Release 1.84.0
Jul 17, 2025
1a5e376
fix(amazonq): enable qCodeReview tool feature flag
singhAws Jul 17, 2025
3c76e30
fix(amazonq): Increase region profiles cache expiration to 1 hour
tsmithsz Jul 17, 2025
c9c061e
fix(amazonq): handle suppress single finding in agentic reviewer
blakelaz-amazon Jul 17, 2025
c9a3e9e
fix(amazonq): changed the icon for security issue hover fix option to…
mkovelam Jul 17, 2025
9bb3be3
fix(core): fixing Fix icon failed unit test
mkovelam Jul 17, 2025
4f9da7f
Update version to snapshot version: 1.85.0-SNAPSHOT
Jul 17, 2025
c43ff0f
feat(amazonq): write logs to disk with rotation & cleanup #7691
abhraina-aws Jul 17, 2025
3898ca2
Merge pull request #7696 from singhAws/code-review-tool
BlakeLazarine Jul 17, 2025
a3c1c03
fix(amazonq): skip edit suggestion if applyDiff fail (#7693)
Will-ShaoHua Jul 17, 2025
df9a02b
fix(test): add unit test for auth activation initialize method (#7679)
yueny2020 Jul 17, 2025
f2e9403
fix(amazonq): Use document change event for auto trigger classifier i…
leigaol Jul 17, 2025
477b71a
fix(amazonq): Let Enter invoke auto completion more consistently (#7700)
leigaol Jul 17, 2025
9b51191
fix(amazonq): rename QCodeReview tool to CodeReview
blakelaz-amazon Jul 17, 2025
20ec152
Merge pull request #7695 from tsmithsz/increase-cache
tsmithsz Jul 17, 2025
e49f15f
Merge pull request #7673 from tsmithsz/reduce-latency
tsmithsz Jul 17, 2025
5dbbbd7
feat(amazonq): added logs of toolkit to the same disk place too
abhraina-aws Jul 18, 2025
dfdf377
fix(amazonq): fix issue with casing
blakelaz-amazon Jul 18, 2025
5e256b9
feat(amazonq): added logs of toolkit to the same disk file too #7701
abhraina-aws Jul 18, 2025
34e7f1b
Make sso quickpick option display profiles
reedham-aws Jul 18, 2025
efb2d49
test: make sso quickpick option display profiles
reedham-aws Jul 18, 2025
9f082d9
changelog update
reedham-aws Jul 18, 2025
fb6b847
fix(amazonq): match rotating logger level
abhraina-aws Jul 18, 2025
d6fc897
fix(amazonq): match rotating logger level #7708
abhraina-aws Jul 18, 2025
88caf6b
fix(amazonq): update Q profile and customizations on language-servers…
floralph Jul 18, 2025
aff7180
Merge branch 'aws:master' into code-review-tool
mkovelam Jul 18, 2025
e62889f
feat(amazonq): enabling code review tool
mkovelam Jul 18, 2025
4fd2d45
revert(amazonq): should pass nextToken to Flare for Edits on acc… (#7…
yueny2020 Jul 18, 2025
c5b9976
Merge branch 'aws:master' into code-review-tool
singhAws Jul 19, 2025
ab7fb6a
fix(amazonq): reverting for Amazon Q (#7714)
laileni-aws Jul 19, 2025
ca66d79
fix(amazonq): removing unwanted files (#7715)
laileni-aws Jul 19, 2025
9facfdd
Release 1.85.0
Jul 19, 2025
6c7f040
Update version to snapshot version: 1.86.0-SNAPSHOT
Jul 19, 2025
990def6
Merge master branch and resolve conflicts
singhAws Jul 20, 2025
e193525
deps: bump @aws-toolkits/telemetry to 1.0.329
singhAws Jul 21, 2025
2770a81
fix(amazonq): handle suppress single finding in agentic reviewer
blakelaz-amazon Jul 21, 2025
06b4df6
fix(amazonq): changed the icon for security issue hover fix option to…
blakelaz-amazon Jul 21, 2025
34a6675
fix(amazonq): disable codeReviewInChat feature flag
blakelaz-amazon Jul 21, 2025
9562ccc
fix(amazonq): reverting for Amazon Q (#7714) (#7730)
yueny2020 Jul 22, 2025
532c37f
Merge branch 'master' into code-review-tool
BlakeLazarine Jul 22, 2025
ff9d816
fix(amazonq): correctly update the on show inlay hints for code refer…
leigaol Jul 22, 2025
683e49f
Merge branch 'aws:master' into code-review-tool
singhAws Jul 22, 2025
2fb0926
telemetry(lambda): nit to use sessionDuration correctly for debug dur…
roger-zhangg Jul 22, 2025
5211459
Merge branch 'aws:master' into code-review-tool
singhAws Jul 22, 2025
4a3f0e0
feat(amazonq): enable show logs (#7733)
abhraina-aws Jul 22, 2025
f2699b1
Merge branch 'aws:master' into code-review-tool
singhAws Jul 22, 2025
61d328d
Merge pull request #7731 from singhAws/code-review-tool
BlakeLazarine Jul 22, 2025
b980406
fix(amazonq): fix Inline completion acceptance and reject telemetry r…
leigaol Jul 23, 2025
72f5168
Merge pull request #7707 from rhamilt/ssoQuickPickUpdate
bywang56 Jul 23, 2025
d0082e6
other(amazonq): remove unnecessary notes file
floralph Jul 23, 2025
41019e6
feat(amazonq): add keyboard shortcut for stop/reject/run commands (#7…
dungdong-aws Jul 23, 2025
2fe85cd
Revert "other(amazonq): remove unnecessary notes file"
floralph Jul 23, 2025
109a674
revert(amazonq): remove unnecessary notes file (#7737)
floralph Jul 23, 2025
669354b
fix(amazonq): update shortcut name to reuse for MCP tools
dungdong-aws Jul 23, 2025
95811a6
fix: revert dev config
dungdong-aws Jul 23, 2025
2093c59
fix(amazonq): point to the log file inside the folder (#7744)
abhraina-aws Jul 23, 2025
62fab80
Merge pull request #7742 from dungdong-aws/fix/shortcutname
dungdong-aws Jul 23, 2025
8748fc3
fix(amazonq): use diffWordsWithSpace instead of diffChars to calculat…
atonaamz Jul 23, 2025
9128f47
feat(amazonq): added show logs to the top menu bar dropdown (#7745)
abhraina-aws Jul 24, 2025
2d9440a
refactor(amazonq): Removing unwanted / agents code (#7735)
laileni-aws Jul 24, 2025
4543593
fix(amazonq): use diffWordsWithSpace instead of diffChars to calculat…
atonaamz Jul 24, 2025
6c79154
fix(amazonq): disable SageMakerUnifiedStudio for show logs (#7747)
abhraina-aws Jul 24, 2025
7f36a2d
config(amazonq): disable inline tutorial since it's taking ~250ms for…
Will-ShaoHua Jul 24, 2025
69516f4
fix(amazonq): early stop pagination requests when user decision is ma…
leigaol Jul 24, 2025
cf5d9b3
fix(amazonq): fix line break format when getting the current text doc…
atonaamz Jul 24, 2025
3084ae1
fix(amazonq): fix line break format when getting the current text doc…
atonaamz Jul 25, 2025
0769acb
fix(amazonq): Faster and more responsive auto trigger UX. (#7763)
leigaol Jul 25, 2025
64fae72
refactor(amazonq): Removing unwanted /dev and /doc code (#7760)
laileni-aws Jul 25, 2025
0bfc338
fix(auth): Fix for SSO Profile Role Chaining Regression (#7764)
laileni-aws Jul 25, 2025
6ac1207
config(amazonq): codewhisperer endpoint via settings.json (#7761)
Will-ShaoHua Jul 25, 2025
f36023f
fix(auth): Apply static workspace ID for Eclipse Che instances (#7614)
bryceitoc9 Jul 28, 2025
3b85269
telemetry(amazonq): flare is now source of truth for metrics (#7768)
chungjac Jul 28, 2025
f724fe9
refactor(amazonq): removing agentWalkThrough workflow (#7775)
laileni-aws Jul 28, 2025
0fcd624
fix(amazonq): switch off the feature flag incase sagemaker is involve…
abhraina-aws Jul 28, 2025
0dd5bf4
fix(amazonq): skip EDITS suggestion if there is no change between cur…
atonaamz Jul 28, 2025
8e11197
fix(amazonq): update the marketing message for the Amazon Q plugin
abhraina-aws Jul 29, 2025
e70b5ce
Merge pull request #7782 from abhraina-aws/marketing
bywang56 Jul 29, 2025
e6ff1ee
Merge pull request #7778 from atonaamz/nep-flare
bywang56 Jul 29, 2025
7741988
Release 1.86.0
Jul 30, 2025
11ca7ce
Release 3.70.0
Jul 30, 2025
e3f447d
Update version to snapshot version: 1.87.0-SNAPSHOT
Jul 30, 2025
aa2c6e7
Update version to snapshot version: 3.71.0-SNAPSHOT
Jul 30, 2025
5d70676
Merge release into master
Jul 30, 2025
632a570
Merge pull request #7739 from singhAws/code-review-tool
BlakeLazarine Jul 30, 2025
a41fde3
fix(amazonq): bring back the removal of extra) ] } ' " after inline c…
leigaol Jul 31, 2025
54dbec8
fix(amazonq): correct the isAutoTrigger boolean flag (#7787)
leigaol Jul 31, 2025
42b7fb9
Release 1.87.0
Jul 31, 2025
841b568
Update version to snapshot version: 1.88.0-SNAPSHOT
Jul 31, 2025
19af0fd
feat(appcomposer): Update CFN snippet source (#7729)
truggeriaws Jul 31, 2025
9eaeb1c
fix(amazonq): add startUrl to more metrics (#7788)
abhraina-aws Jul 31, 2025
6642840
fix(amazonq): use current file content to calculate highlighted range…
atonaamz Aug 1, 2025
9e7b13c
ci: don't fail build if coverage should not be reported/failure (#7798)
rli Aug 1, 2025
187f27a
fix(amazonq): bring back timeout to local LSP call inline completion …
leigaol Aug 1, 2025
6bfa34f
fix(amazonq): Fix next edit suggestion, inline accept and reject edit…
tsmithsz Aug 1, 2025
d3e1e4f
fix(amazonq): update LSP client info name for sagemaker unified studi…
parameja1 Aug 4, 2025
d40d74a
feat(amazonq): enable displayFindings tool (#7799)
BlakeLazarine Aug 4, 2025
e6311d9
fix(amazonq): not set IAM auth as default for SMAI remote ssh (#7795)
yueny2020 Aug 4, 2025
c9d6f91
fix(amazonq): Add Open tab as params for inline completion (#7801)
leigaol Aug 4, 2025
4080c31
fix(amazonq): Inline test after function addition, writeToTextEditor …
surajrdy-aws Aug 4, 2025
b020242
feat(amazonq): Implement the MCP Abstractions and 3 Tests (#7791)
laura-codess Aug 4, 2025
639d035
fix(amazonq): revert update LSP client info name for sagemaker unifie…
chungjac Aug 5, 2025
712d978
feat(amazonq): display transformation history and add ability to resu…
tgodara-aws Aug 5, 2025
64edd0e
fix(amazonq): Skip prefix matching for Edits suggestions that trigger…
atonaamz Aug 5, 2025
6e2976e
test(amazonq): minor test fix (#7819)
tgodara-aws Aug 5, 2025
fceeae7
feat(amazonq): Auto Debug Functionality (#7609)
MarcoWang3 Aug 5, 2025
781f89e
send firstCompletionDisplayLatency in multiple reject cases (#7821)
andrewyuq Aug 5, 2025
71a4aef
feat(amazonq): update lsp clientname to support sagemaker unified stu…
parameja1 Aug 5, 2025
17b9bcc
fix(amazonq): add change logs (#7832)
MarcoWang3 Aug 6, 2025
25c4b78
Release 3.71.0
Aug 6, 2025
9e5d4c9
Release 1.88.0
Aug 6, 2025
1868581
Update version to snapshot version: 1.89.0-SNAPSHOT
Aug 6, 2025
e697f50
Update version to snapshot version: 3.72.0-SNAPSHOT
Aug 6, 2025
7ff0659
Merge release into master
Aug 6, 2025
76a1cd0
refactor(amazonq): separate edits from completion code path (#7793)
Will-ShaoHua Aug 7, 2025
4d56741
fix(amazonq): validate yaml file for required keys (#7818)
dhasani23 Aug 7, 2025
7a912db
Merge remote-tracking branch 'origin/master' into HEAD
laura-codess Aug 8, 2025
4cbf6ee
install package
laura-codess Aug 8, 2025
32329de
removed extra vscode import
laura-codess Aug 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildspec/linuxTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ phases:
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site
- CI_BUILD_ID="${CODEBUILD_BUILD_ID}"
- test -n "${CODECOV_TOKEN}" && [ "$TARGET_BRANCH" = "master" ] && ./codecov --token=${CODECOV_TOKEN} --branch=${CODEBUILD_RESOLVED_SOURCE_VERSION} --repository=${CODEBUILD_SOURCE_REPO_URL} --file=./coverage/amazonq/lcov.info --file=./coverage/toolkit/lcov.info
- test -n "${CODECOV_TOKEN}" && [ "$TARGET_BRANCH" = "master" ] && ./codecov --token=${CODECOV_TOKEN} --branch=${CODEBUILD_RESOLVED_SOURCE_VERSION} --repository=${CODEBUILD_SOURCE_REPO_URL} --file=./coverage/amazonq/lcov.info --file=./coverage/toolkit/lcov.info || true

reports:
unit-test:
Expand Down
53 changes: 39 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"testE2E": "npm run testE2E -w packages/ --if-present",
"test:ui:prepare": "./node_modules/.bin/extest get-vscode -s ~/.vscode-test-resources -n && extest get-chromedriver -s ~/.vscode-test-resources -n",
"test:ui:install": "cd packages/amazonq && npm run package 2>&1 | grep -o 'VSIX Version: [^ ]*' | cut -d' ' -f3 | xargs -I{} bash -c 'cd ../../ && ./node_modules/.bin/extest install-vsix -f amazon-q-vscode-{}.vsix -e packages/amazonq/test/e2e_new/amazonq/resources -s ~/.vscode-test-resources'",
"test:ui:run": "npm run testCompile && ./node_modules/.bin/extest run-tests -s ~/.vscode-test-resources -e packages/amazonq/test/e2e_new/amazonq/resources packages/amazonq/dist/test/e2e_new/amazonq/tests/*.js",
"test:ui:run": "npm run testCompile && ./node_modules/.bin/extest run-tests -s ~/.vscode-test-resources -e packages/amazonq/test/e2e_new/amazonq/resources packages/amazonq/dist/test/e2e_new/amazonq/tests/*.test.js",
"test:ui": "npm run test:ui:prepare && npm run test:ui:install && npm run test:ui:run",
"testInteg": "npm run testInteg -w packages/ --if-present",
"package": "npm run package -w packages/toolkit -w packages/amazonq",
Expand Down
18 changes: 18 additions & 0 deletions packages/amazonq/.changes/1.86.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"date": "2025-07-30",
"version": "1.86.0",
"entries": [
{
"type": "Bug Fix",
"description": "Let Enter invoke auto completion more consistently"
},
{
"type": "Bug Fix",
"description": "Faster and more responsive inline completion UX"
},
{
"type": "Bug Fix",
"description": "Use documentChangeEvent as auto trigger condition"
}
]
}
5 changes: 5 additions & 0 deletions packages/amazonq/.changes/1.87.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"date": "2025-07-31",
"version": "1.87.0",
"entries": []
}
14 changes: 14 additions & 0 deletions packages/amazonq/.changes/1.88.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"date": "2025-08-06",
"version": "1.88.0",
"entries": [
{
"type": "Feature",
"description": "Amazon Q Chat provides error explanations and fixes when hovering or right-clicking on error indicators and messages"
},
{
"type": "Feature",
"description": "/transform: Show transformation history in Transformation Hub and allow users to resume jobs"
}
]
}
15 changes: 15 additions & 0 deletions packages/amazonq/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 1.88.0 2025-08-06

- **Feature** Amazon Q Chat provides error explanations and fixes when hovering or right-clicking on error indicators and messages
- **Feature** /transform: Show transformation history in Transformation Hub and allow users to resume jobs

## 1.87.0 2025-07-31

- Miscellaneous non-user-facing changes

## 1.86.0 2025-07-30

- **Bug Fix** Let Enter invoke auto completion more consistently
- **Bug Fix** Faster and more responsive inline completion UX
- **Bug Fix** Use documentChangeEvent as auto trigger condition

## 1.85.0 2025-07-19

- Miscellaneous non-user-facing changes
Expand Down
34 changes: 15 additions & 19 deletions packages/amazonq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,47 @@
[![Youtube Channel Views](https://img.shields.io/youtube/channel/views/UCd6MoB9NC6uYN2grvUNT-Zg?style=flat-square&logo=youtube&label=Youtube)](https://www.youtube.com/@amazonwebservices)
![Marketplace Installs](https://img.shields.io/vscode-marketplace/i/AmazonWebServices.amazon-q-vscode.svg?label=Installs&style=flat-square)

# Agent capabilities
# Agentic coding experience

Amazon Q Developer uses information across native and MCP server-based tools to intelligently perform actions beyond code suggestions, such as reading files, generating code diffs, and running commands based on your natural language instruction. Simply type your prompt in your preferred language and Q Developer will provide continuous status updates and iteratively apply changes based on your feedback, helping you accomplish tasks faster.

### Implement new features

`/dev` to task Amazon Q with generating new code across your entire project and implement features.
Generate new code across your entire project and implement features.

### Generate documentation

`/doc` to task Amazon Q with writing API, technical design, and onboarding documentation.
Write API, technical design, and onboarding documentation.

### Automate code reviews

`/review` to ask Amazon Q to perform code reviews, flagging suspicious code patterns and assessing deployment risk.
Perform code reviews, flagging suspicious code patterns and assessing deployment risk.

### Generate unit tests

`/test` to ask Amazon Q to generate unit tests and add them to your project, helping you improve code quality, fast.

### Transform workloads

`/transform` to upgrade your Java applications in minutes, not weeks.
Generate unit tests and add them to your project, helping you improve code quality, fast.

<br>

# Core features

### Inline chat

Seamlessly initiate chat within the inline coding experience. Select a section of code that you need assistance with and initiate chat within the editor to request actions such as "Optimize this code", "Add comments", or "Write tests".

### Chat
### MCP support

Generate code, explain code, and get answers about software development.
Add Model Context Protocol (MCP) servers to give Amazon Q Developer access to important context.

### Inline suggestions

Receive real-time code suggestions ranging from snippets to full functions based on your comments and existing code.

[_15+ languages supported including Python, TypeScript, Rust, Terraform, AWS Cloudformation, and more_](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/q-language-ide-support.html)

### Code reference log
### Inline chat

Seamlessly chat within the inline coding experience. Select a section of code that you need assistance with and initiate chat within the editor to request actions such as "Optimize this code", "Add comments", or "Write tests".

Attribute code from Amazon Q that is similar to training data. When code suggestions similar to training data are accepted, they will be added to the code reference log.
### Chat

Generate code, explain code, and get answers about software development.

<br>

Expand All @@ -55,8 +53,6 @@ Attribute code from Amazon Q that is similar to training data. When code suggest

**Pro Tier** - if your organization is on the Amazon Q Developer Pro tier, log in with single sign-on.

![Authentication gif](https://raw.githubusercontent.com/aws/aws-toolkit-vscode/HEAD/docs/marketplace/vscode/amazonq/auth-Q.gif)

# Troubleshooting & feedback

[File a bug](https://github.com/aws/aws-toolkit-vscode/issues/new?assignees=&labels=bug&projects=&template=bug_report.md) or [submit a feature request](https://github.com/aws/aws-toolkit-vscode/issues/new?assignees=&labels=feature-request&projects=&template=feature_request.md) on our Github repository.
18 changes: 12 additions & 6 deletions packages/amazonq/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "amazon-q-vscode",
"displayName": "Amazon Q",
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
"version": "1.86.0-SNAPSHOT",
"description": "The most capable generative AIpowered assistant for software development.",
"version": "1.89.0-SNAPSHOT",
"extensionKind": [
"workspace"
],
Expand Down Expand Up @@ -743,7 +743,7 @@
},
{
"command": "aws.amazonq.showHistoryInHub",
"title": "%AWS.command.q.transform.viewJobStatus%"
"title": "%AWS.command.q.transform.viewJobHistory%"
},
{
"command": "aws.amazonq.selectCustomization",
Expand Down Expand Up @@ -849,15 +849,21 @@
},
{
"command": "aws.amazonq.inline.acceptEdit",
"title": "%aws.amazonq.inline.acceptEdit%"
"title": "%AWS.amazonq.inline.acceptEdit%",
"category": "%AWS.amazonq.title%",
"enablement": "aws.codewhisperer.connected"
},
{
"command": "aws.amazonq.inline.rejectEdit",
"title": "%aws.amazonq.inline.rejectEdit%"
"title": "%AWS.amazonq.inline.rejectEdit%",
"category": "%AWS.amazonq.title%",
"enablement": "aws.codewhisperer.connected"
},
{
"command": "aws.amazonq.toggleNextEditPredictionPanel",
"title": "%aws.amazonq.toggleNextEditPredictionPanel%"
"title": "%AWS.amazonq.toggleNextEditPredictionPanel%",
"category": "%AWS.amazonq.title%",
"enablement": "aws.codewhisperer.connected"
}
],
"keybindings": [
Expand Down
21 changes: 12 additions & 9 deletions packages/amazonq/src/app/amazonqScan/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Messenger } from './chat/controller/messenger/messenger'
import { UIMessageListener } from './chat/views/actions/uiMessageListener'
import { debounce } from 'lodash'
import { Commands, placeholder } from 'aws-core-vscode/shared'
import { codeReviewInChat } from './models/constants'

export function init(appContext: AmazonQAppInitContext) {
const scanChatControllerEventEmitters: ScanChatControllerEventEmitters = {
Expand Down Expand Up @@ -74,17 +75,19 @@ export function init(appContext: AmazonQAppInitContext) {
return debouncedEvent()
})

Commands.register('aws.amazonq.security.scan-statusbar', async () => {
if (AuthUtil.instance.isConnectionExpired()) {
await AuthUtil.instance.notifyReauthenticate()
}
return focusAmazonQPanel.execute(placeholder, 'amazonq.security.scan').then(() => {
DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({
sender: 'amazonqCore',
command: 'review',
if (!codeReviewInChat) {
Commands.register('aws.amazonq.security.scan-statusbar', async () => {
if (AuthUtil.instance.isConnectionExpired()) {
await AuthUtil.instance.notifyReauthenticate()
}
return focusAmazonQPanel.execute(placeholder, 'amazonq.security.scan').then(() => {
DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({
sender: 'amazonqCore',
command: 'review',
})
})
})
})
}

codeScanState.setChatControllers(scanChatControllerEventEmitters)
onDemandFileScanState.setChatControllers(scanChatControllerEventEmitters)
Expand Down
2 changes: 2 additions & 0 deletions packages/amazonq/src/app/amazonqScan/models/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,5 @@ const getIconForStep = (targetStep: number, currentStep: number) => {
? checkIcons.done
: checkIcons.wait
}

export const codeReviewInChat = true
Loading
Loading