chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
mauricio.szabo 2019-05-20T14:36:01.081300Z

Yesterday I've published version 0.1.3, and just now I've imagined that it could have some issues with autocomplete lagging (specially if you enable autocomplete while typing) - because the new version of Chlorine serializes some command. Maybe I'll need to add a configuration to restrict how many matches autocomplete will return (or maybe even try some clever tricks like aborting the autocomplete when it detects it needs to complete again)

mauricio.szabo 2019-05-20T14:36:28.081900Z

So, if you're having some issues with autocomplete lagging on this version, ping me 🙂

seancorfield 2019-05-20T15:40:07.083800Z

It would also probably help if it never tried to auto complete an empty string -- I see that a lot when tabbing or pressing space repeatedly

mauricio.szabo 2019-05-20T19:45:33.085300Z

@seancorfield just a question, have you changed the Autocomplete plug-in parameter "Minimum word length"? Mine here is on default (3 - I just found this option while I was trying to reproduce your issue)

seancorfield 2019-05-20T19:46:07.085500Z

Let me check...

seancorfield 2019-05-20T19:49:08.086200Z

...Still on the default of 3. I have changed a few of the settings tho'... Now I can't remember what the defaults are.

seancorfield 2019-05-20T19:51:05.086900Z

I changed Cursor to Word for position of autocomplete. Just changed that back and, so far, that seems to have improved things a bit.

mauricio.szabo 2019-05-20T19:52:31.088Z

Neverming, found the issue

seancorfield 2019-05-20T19:52:34.088200Z

I do still see autocomplete suggestions with no characters tho'. For example I type ( and now I have (|) where | is the cursor, and after a short delay, a function list pops up.

mauricio.szabo 2019-05-20T19:53:22.088900Z

Seems that "Minimum word length" ignores things when we're pressing backspace or (, [, and other special chars

seancorfield 2019-05-20T19:53:45.089300Z

(I still have the delay before suggestions set to the default of zero, BTW)

seancorfield 2019-05-20T19:54:09.089800Z

Ah, I disabled auto-suggest while backspacing because that just annoyed me.

seancorfield 2019-05-20T19:56:46.091300Z

Just to sanity check my settings.

mauricio.szabo 2019-05-20T20:01:06.093500Z

Seems fine to me. Mine are almost the same. What I found is that when you register an external autocomplete provider, it ignores that minimum word count. I think I should check that config variable before attempting the autocomplete...

mauricio.szabo 2019-05-20T20:32:13.093600Z

This would be the new behavior (if I limit autocomplete to only starts to complete on length 4). WDYT?

seancorfield 2019-05-20T20:43:05.094Z

Looks good!