Real world example:
I have some sonar warnings ...
Quickfix (Ctrl + 1) shows ...
Why not adding "Suggest fix from copilot" here too?
- the code-context ist known
- the (external) problem is available (eclipse problem marker(s)
So it should be easy to feed copilot with that data and ask for a focused fix .. only this line
In my example it would be pretty cool if copilot can suggest to use correct slf4j logging pattern (maybe he can also gain some more input from the referenced variables, the surrounding method/class, or even more (performance?) ...
A fix could be to do "LOGGER.warn("Ignore action '{}'", action);"