Determine if autocomplete is showing?


#1

Is there an idiomatic way to determine is the autocomplete pop-up is showing?

Right now I’m inspecting the DOM to determine this, but I suspect there is probably a faster / cleaner way.

Anyone know?

Thanks!
Chris


#2

Here’s how autocomplete do in its own test suite
https://github.com/atom/autocomplete-plus/blob/master/spec/autocomplete-manager-integration-spec.coffee#L73


#3

I agree with @jeancroy, using the DOM is probably the best bet unless there is an event you can connect to. (Which I don’t think there is.)