Skip to content

[CLOSED] Fix code hint provider selection #3014

@core-ai-bot

Description

@core-ai-bot

Issue by iwehrman
Thursday Mar 21, 2013 at 23:17 GMT
Originally opened as adobe/brackets#3208


Commit 5878608 replaced a number of instances of $.each with Array.forEach. But those functions are not interchangeable: only the former supports early break-out. Both the CodeHintManager and the CodeHintList relied on this feature. In particular, that commit broke:

  1. CodeHintManager provider selection, by always choosing the last provider instead of stopping at the first, highest-priority provider

  2. the CodeHintList, by adding all the available hints instead of of just the first maxResults hints.

The first issue also breaks Edge Web Fonts in particular.

This pull reverts just those two changes. I haven't checked all the other replacements from that commit to see if there are other related problems. (Want to have a look,@TomMalbran?)


iwehrman included the following code: https://github.com/adobe/brackets/pull/3208/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