adobe/brackets — pull request #2261 by iwehrman (2012-12-01 01:50:09+00:00)
Title: Only query hint providers that have offered to show hints

@raymondlim @gruehle @joelrbrandt

Partially addresses adobe/brackets#2258 by way of solution #2. The shouldShowHintsOnChange flag, which indicated that some provider was willing to provide hints, is removed in favor of a list, enabledHintProviders, that is populated with hint providers for which shouldShowHintsOnKey returns true. Consequently, only those providers that have offered to provide hints are queried. If the hint list is requested explicitly via Ctrl-Space, the individual providers are not initially queried with shouldShowHintsOnKey, and so an additional flag queryAllProviders indicates in this case that hints should be elicited from all providers instead of just those that are enabled.