Skip to content

Amazon q plugin cant see what code is highlighted/selected, and gets wrong cursor position. #6050

@nutmix

Description

@nutmix

When you install the plugin, it says it can "explain" selected code.

However, when I highlight code in a java class in a spring boot app, then type "explain", it explains the entire class, not highlighted code. When I ask it to "explain highlighted code" it says "I still cannot see any highlighted/selected code". It also says the cursor is at 0,0 when the cursor is actually on the line I want explained.
I also tried setting the pined condext to "@workspance", instead of the default which is no context, but this didnt help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWe can reproduce the issue and confirmed it is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions