Skip to content

Autocomplete removing preceding space #1483

Closed

Description

@mayorbyrne

When I try and set a value using autocomplete, sometimes the editor removes the preceding space. If I want something that looks like note.x = dropAreaBG.x, if I autocomplete on dropAreaBG, the end results looks like note.x =dropAreaBG.x.

I've added a gif that illustrates what I'm seeing. Since this doesn't seem to happen when editing js, it feels like a dart extension issue.

autocomplete gif

Activity

  1. added this to the v2.25.0 milestone on Feb 26, 2019
  2. DanTup commented on Feb 26, 2019

    @DanTup
    Member

    Yep, definitely a bug! Possibly related to us putting a space in filterText (suggested at microsoft/vscode#66860 (comment)). I'll see what I can find. Thanks!

  3. DanTup commented on Feb 28, 2019

    @DanTup
    Member

    Unfortunately VS Code doesn't handle what we were trying to do here very well, so I've had to remove = and : as trigger completion characters. This means completion won't open automatically after typing those (but will when you type another character, or manually invoke with Ctrl+Space).

  4. alex9153 commented on Apr 10, 2019

    @alex9153

    I have the same problem. Is there any solution?

  5. DanTup commented on Apr 10, 2019

    @DanTup
    Member

    @alex9153 What version of the Dart extension do you have? This should be fixed in the latest release.

  6. alex9153 commented on Apr 10, 2019

    @alex9153

    Just updated to 2.25.0 ... seems like error is gone.

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

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions