question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete removing preceding space

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
DanTupcommented, Feb 26, 2019

Yep, definitely a bug! Possibly related to us putting a space in filterText (suggested at https://github.com/Microsoft/vscode/issues/66860#issuecomment-456208542). I’ll see what I can find. Thanks!

3reactions
DanTupcommented, Feb 28, 2019

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove space in my autocompletextview when I search
If you want to remove whitespace from the begining and ending of the string use .trim(). Like the regex, put it after your...
Read more >
Remove space autocomplete from M-x - Emacs Stack Exchange
I use Plover steno (https://www.openstenoproject.org/) with Emacs (i.e. mapping key strokes to words/phrases). Plover automatically puts spaces ...
Read more >
autofill adds trailing space to each field | Firefox Support Forum
When autofill adds text to web forms, it adds a trailing space to each entry. This triggers checks for mal-formed email and phone...
Read more >
Trim search value in AutoComplete in Kendo UI for jQuery
is there a way to trim search value in autocomplete? The scenario is that as first thing when I use autocomplete I press...
Read more >
Remove whitespaces between two or more words
You could use below mentioned function to remove empty spaces between input string value... Function Name = stripNonAlphaNumericChars. Capture.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found