-
Notifications
You must be signed in to change notification settings - Fork 145
do
snippet should have higher priority than dop
#130
Comments
Have you tried turning on the "Use Alternate Scoring" checkbox in the autocomplete-plus package settings? |
Hi @lee-dohm, I've tried this and it's sorted out the problem. It also fixed the issue where ⌘T was suggesting the test factory for a model ahead of the model itself. I don't remember turning this on myself and a colleague who was also troubled by the do/dop issue had it checked, despite downloading Atom fresh yesterday. This implies that it's on by default in Atom despite being marked as experimental. Thanks! |
I should clarify, I fixed this by turning off alternate scoring. |
Reinstalling Atom doesn't clear out any saved configurations, only deleting the |
I've checked and he'd never installed Atom on that machine before, since installing the OS fresh last month. I've checked the creation date of the |
A +1 for this being solved without the user needing to manually go into the autocomplete-plus package and uncheck "Use Alternate Scoring". Possibly even removing the I can also confirm that "Use Alternate Scoring" has been the default since roughly Dec 18, 2015: atom/autocomplete-plus@e498988 |
/cc @jeancroy |
Ok In autocomplete plus there's this code path provided for provider that don't implement their own filter. It dilute the fuzzaldrin-plus scoring to mix it with default order information. The theory is that the provider may have external information as to how things should be ordered. If the provider don't, it just give a lower quality score. What is this default order we speak of ? By default, for snippet it is alphabetical order However I'll end this by saying i've spent 0 second trying to tune the mixin function, because I don't really have any reference to how valuable initial ordering is. It is however broken. Personnaly I have a tedency to prefer pure ranking and no external information, but maybe each provider can choose how valuable their initial ranking is. Fixing the sort comparator can probably band-aid fix this issue too. As to why disabling alternate scoring fix this, the previous scoring give ton of importance to shorter string, it's about the most important signal it use. Also the mixin function has been designed with the previous scoring range. |
Hi all,
I'm happy to fix this myself if you can point me in the right direction, but despite the snippets file listing the
do
snippet for Ruby blocks first, Atom suggestsdop
(do
with a block variable) first despite being the less common case.I have other ordering issues with suggestions elsewhere in Atom so understanding this mechanism would be a great help.
Cheers,
Elliot
The text was updated successfully, but these errors were encountered: