Commit 4e56897
authored
fix(amazonq): Test generation shows incorrect view diff view (#6676)
## Problem
- When users attempt to generate unit test cases using the /test command
for packages other than the primary one in the workspace, they encounter
a diff view suggesting the absence of an existing file. However, this is
incorrect as there is already an existing test file in the package.
## Solution
- Fixed this issue by getting the project path from the target file.
---
- 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.1 parent 59e1c3c commit 4e56897
File tree
2 files changed
+5
-6
lines changed- packages
- amazonq/.changes/next-release
- core/src/amazonqTest/chat/controller
2 files changed
+5
-6
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 681 | + | |
687 | 682 | | |
688 | 683 | | |
689 | 684 | | |
| |||
0 commit comments