AmazonQ "Quick Fix" suggestions have too high of priority in menu
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
When using the quick fix menu (command+fullstop) on an item that is missing an import (eg. TypeScript project) the **AmazonQ: Fix Problem** prompt is above the import suggestions.
## Steps to reproduce the issue
1. Use a component that you need to import into a TypeScript project without importing it first
2. Bring up the 'Quick Fix' menu by hovering the component and clicking 'Quick Fix', or use the 'command + fullstop' to bring it up
3. The '**AmazonQ: Fix Problem**' is consistently offered at the top suggestion, with the others at typically high priority
## Expected behaviour
I would expect the AmazonQ quick fixes to be below other suggested fixes. Related, we ought to be able to choose this ordering, but that doesn't appear to be possible with VS Code as far as I can tell.
It appears that the **Fix Problem** quick action has been given higher priority, and I believe this to be the initial fix to this issue.
In the file `codeActionsProvider.ts` on line 82:
`action.isPreferred = true // Make this the preferred quick fix`
## System details (run `AWS: About` and/or `Amazon Q: About`)
- OS: Mac Sequoia 15.6
- Visual Studio Code version: 1.102.3
- AWS Toolkit version: ---
- Amazon Q version: 1.88.0
Contributor guide
Research direction
Start by inspecting codeActionsProvider.ts around line 82 and reproduce the missing-import Quick Fix in a TypeScript project. Compare the ordering of the AmazonQ: Fix Problem action with the import suggestions; done means the Amazon Q action no longer appears above the other suggested fixes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100