Skip to content

Autocomplete overriding value after if selected before with no space #68

Description

@burkekevinm

When searching and using autocomplete, it is replacing characters after the cursor when adding in the autocomplete value. The issue is unless you are paying attention you don't realize it's dropping off fields from your query.

Steps to reproduce:

  1. Enter the query "Select Id, Name, Phone from Account limit 10"
  2. Have "account" selected in the object dropdown for autocomplete
  3. Put your cursor right before the P in phone
  4. Start typing ty (to select Type)
  5. Hit the enter key to select Type from autocomplete

Results:
Query is updated and Type is added however, it deletes phone and now shows "select Id, Name, Type from Account limit 10"

Expected Results:
Query is updated to select Type and it replaces the characters before the cursor (for autocompletion) but does not replace the characters after so at the end of autocomplete the query would show "select Id, Name, TypePhone from Account limit 10" just as if you were completing in another IDE.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions