This would be OK except that it overrides the built-in autocomplete-snippets priority of 2. This means that when you're quickly typing code using snippets, your snippets are often "buried" in the list somewhere.
Common example: there is a log snippet where you can type log followed by tab and it expands to console.log(). But, when ide-flowtype is in use, you often get other flow-related completions instead:
The end result is that typing log+tab almost never results in your desired snippet. It really handicaps the utility of snippets, as evidenced by a few open issues (#88, #946, #157) across various repos.
I'm wondering why the value of 5 was chosen for Flow's completion suggestions? When I change it to, for instance, 1, I get a more correct ordering:
And Flow's suggestions are still given priority over the "dumb" word-in-file completions provided by Atom out of the box.
Would a PR modifying the priority back to 1 be considered?
Hi! Loving
ide-flowtype
.I've noticed that
ide-flowtype
is setting asuggestionPriority
of5
here:https://github.com/flowtype/ide-flowtype/blob/master/lib/main.js#L122
This would be OK except that it overrides the built-in
autocomplete-snippets
priority of2
. This means that when you're quickly typing code using snippets, your snippets are often "buried" in the list somewhere.Common example: there is a
log
snippet where you can typelog
followed bytab
and it expands toconsole.log()
. But, whenide-flowtype
is in use, you often get other flow-related completions instead:The end result is that typing
log+tab
almost never results in your desired snippet. It really handicaps the utility of snippets, as evidenced by a few open issues (#88, #946, #157) across various repos.I'm wondering why the value of
5
was chosen for Flow's completion suggestions? When I change it to, for instance,1
, I get a more correct ordering:And Flow's suggestions are still given priority over the "dumb" word-in-file completions provided by Atom out of the box.
Would a PR modifying the priority back to
1
be considered?