Skip to content

feat(amazonq): Auto Debug Functionality #7609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 200 commits into from
Aug 5, 2025

Conversation

MarcoWang3
Copy link
Contributor

@MarcoWang3 MarcoWang3 commented Jul 3, 2025

Problem

Developers frequently encounter compilation errors, linting issues, and other diagnostic problems while coding in VS Code. Currently, they need to manually copy error messages and switch to Amazon Q chat to get help fixing these issues, creating friction in the development workflow and breaking their coding flow.

Solution

This PR introduces Amazon Q Auto Debug, a new feature that seamlessly integrates diagnostic problem-solving directly into the VS Code editor experience. The feature provides three main interaction methods:

Quick Fix Integration: When hovering over diagnostic errors/warnings, developers see Amazon Q options in the quick fix menu including "Fix Problem", "Fix All Errors", and "Explain Problem" actions.

Command Palette Access: Three new commands are registered (amazonq.01.fixWithQ, amazonq.02.fixAllWithQ, amazonq.03.explainProblem) that can be triggered from the command palette or bound to keyboard shortcuts.

Intelligent Error Processing: The system automatically captures diagnostic information from VS Code's language servers, formats error context with surrounding code snippets, and sends structured prompts to Amazon Q chat. For "Fix All" operations, it processes up to 15 errors at once to avoid overwhelming the AI system.

The workflow operates through a controller-based architecture that monitors VS Code diagnostics, formats error context with file paths and line numbers, and communicates directly with the Amazon Q chat panel via LSP client messaging. When users trigger a fix action, the system automatically focuses the Amazon Q panel and submits a formatted prompt containing the error details and surrounding code context, enabling Amazon Q to provide targeted solutions without requiring manual context switching.

Video Demos

Fix single problem

Screen.Recording.2025-08-03.at.11.49.20.AM.mov

Explain single problem

Screen.Recording.2025-08-03.at.11.50.31.AM.mov

Fix all errors

Screen.Recording.2025-08-03.at.11.51.23.AM.mov

aws-toolkit-automation and others added 30 commits June 23, 2025 19:26
…

## Problem
- to reduce # of service calls within short time duration and result in
throttling error thrown
- 


## Solution


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
…ble deployment from WFS (aws#7315)

## Problem

- Save telemetry was being recorded for all document saves in VS Code,
not just for the active workflow studio document.
- Save & Deploy functionality required closing Workflow Studio before
starting deployment


## Solution

- Add URI comparison check to ensure telemetry is only recorded when the
saved document matches the current workflow studio document.
- Refactored publishStateMachine.ts to accept an optional TextDocument
parameter and updated activation.ts to support new interface
- Removed closeCustomEditorMessageHandler call from
saveFileAndDeployMessageHandler


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.

---------

Co-authored-by: Diler Zaza <[email protected]>
## Problem

Instead of running `mvn dependency:copy-dependencies` and `mvn clean
install`, we have a JAR that we can execute which will gather all of the
project dependencies as well as some important metadata stored in a
`compilations.json` file which our service will use to improve the
quality of transformations.


## Solution

Remove Maven shell commands; add custom JAR execution.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.

---------

Co-authored-by: David Hasani <[email protected]>
laileni-aws
laileni-aws previously approved these changes Aug 4, 2025
@MarcoWang3 MarcoWang3 changed the base branch from feature/auto-debug to master August 4, 2025 23:41
@MarcoWang3 MarcoWang3 dismissed laileni-aws’s stale review August 4, 2025 23:41

The base branch was changed.

laileni-aws
laileni-aws previously approved these changes Aug 4, 2025
@MarcoWang3 MarcoWang3 changed the base branch from master to feature/auto-debug August 5, 2025 00:02
ashishrp-aws
ashishrp-aws previously approved these changes Aug 5, 2025
@ashishrp-aws ashishrp-aws changed the base branch from feature/auto-debug to master August 5, 2025 18:10
@ashishrp-aws ashishrp-aws dismissed stale reviews from laileni-aws and themself August 5, 2025 18:10

The base branch was changed.

ashishrp-aws
ashishrp-aws previously approved these changes Aug 5, 2025
@ashishrp-aws
Copy link
Contributor

/retryBuilds

@ashishrp-aws ashishrp-aws merged commit fceeae7 into aws:master Aug 5, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.