autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Atom API suggestions only appear (at the bottom) after scrolling the suggestion list

Open maxbrunsfeld opened this issue 8 years ago • 3 comments

autocomplete-bug

You can see that the suggestion list pops up and at first it contains only buffer-based suggestions. I arrow through the list and the autocomplete-atom-api suggestions still don't show up. When I start to scroll the suggestion list with the mouse, they immediately show up, which resizes the suggestion list, but even then they're at the bottom of the list.

/cc @leroix

maxbrunsfeld avatar Nov 18 '17 00:11 maxbrunsfeld

@maxbrunsfeld those suggestions are coming from https://github.com/atom/autocomplete-atom-api, not ide-typescript.

winstliu avatar Nov 18 '17 00:11 winstliu

Ah, thanks for clarifying that @50Wliu! I updated the title.

maxbrunsfeld avatar Nov 18 '17 00:11 maxbrunsfeld

@maxbrunsfeld It seems that autocomplete-atom-api doesn't provide a suggestionPriority. When this is the case, the ProviderManager uses 1 as the default. With a suggestionPriority of 1, its suggestions should appear before the default provider. I suspect that the suggestions you're seeing come before the ones from autocomplete-atom-api are from ide-typescript (suggestionPriority of 2). There also appears to be a snippet provider suggestion in there too (2).

leroix avatar Nov 18 '17 07:11 leroix