Skip to content

Pressing tab on Context selector duplicates the subsequent text if it exists #221

Closed
@ege0zcan

Description

@ege0zcan

Problem

When adding the context selector in a cursor position that is before any text, writing the intended context and pressing tab causes the text after the cursor to be duplicated

I acknowledge that this is probably an edge case but I often found myself facing this issue in my usage of context selector. I find myself wanting to place the context selector at the beginning of a message after writing my prompt which triggers this issue

Steps to reproduce the issue

  • Write some text into the prompt input
  • Place your cursor directly to the left of any character and type @ character followed by some text like workspace, then press tab
  • You will get @workspace followed by a duplicate of your pre-existing text
context-selector-tab.mp4

Expected behavior

  • Pressing tab shouldn't create duplicate of the words

System details

Tested both on the web demo as well as in VSCode Q

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions