Skip to content

[CLOSED] Only query hint providers that have offered to show hints #2171

@core-ai-bot

Description

@core-ai-bot

Issue by iwehrman
Saturday Dec 01, 2012 at 01:50 GMT
Originally opened as adobe/brackets#2261


@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.


iwehrman included the following code: https://github.com/adobe/brackets/pull/2261/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions