autocomplete-plus
autocomplete-plus copied to clipboard
Snippet completion before object completion
I'm actually not sure where this needs to go, either atom-typescript, Atom itself, or here.
Since the update Atom did to v0.199.0 snippet completions come before object completions, which shouldn't be popping up at all in the context of the completion.

This is particularly annoying because it completely negates proper completions, especially in the second image where it completely hides the info method from being accessible.
Again, I'm not sure if this is an Atom, TypeScript, or Autocomplete issue. Thanks.
https://github.com/TypeStrong/atom-typescript/issues/353 ~~Closes this issue~~.
Reopening as this is an issue with all providers.
Not sure what the best way to mix providers is quite yet.
Oh, okay.
@benogle: This is why we had provider blacklisting :smile:. It was removed, for good reason, and to simplify ProviderManager. But we need something more granular than a single priority.
This is why we had provider blacklisting
We have the equivalent of the blacklisting now with the inclusionPriorities. There is no compositing of separate providers. IMO, this is about mixing them together in a reasonable way, and not about not returning providers results. Every provider will have this issue mixing in with the snippets.
@benogle the old implementation allowed one provider to explicitly blacklist another provider for the scopes within which it operated. Now, that would have been extremely flakey because it relied on the id field, which was not guaranteed to be unique, and not explicitly required.
But in concept, a provider author might declare its priority to be 1, and the say "except, I should always appear above autocomplete-snippets suggestions".
Even that approach feels dirty though. I think a solution may lie in a combination of the following:
- Provider priority provides initial ordering of suggestions
- Selector specificity should then be used
- Exact matches should priority over fuzzy matches, always
- Providers should be able to declare conflict with other providers for a specific suggestion request (although: how to identify providers uniquely?)
+1 really affect usability. The intended behavior is achieved by disabling autocomplete-sippets, but then snippet is not at all shown as a drop down (but snippets work as tab inserts it, but no visual indication) . I wish at least snippet is not show after a dot (mostly in the list of object/class properties) or list at the end in this case.
I'm running into the exact opposite issue. My snippets appear after my typescript suggestions:

Ideally you would be able to either
- Manually set the priority of the provider (atom-typescript, snippets, etc)
- Prioritize atom-typescript if the preceding character is a
., else prioritize snippets.
@elliotaplant Same.. my custom scoped snippet should IMO always take priority.. at the very least when i type all the prefix characters:

@leroix want to take a look at this one?