Skip to main content

CodeHintManager

Import :

const CodeHintManager = brackets.getModule("editor/CodeHintManager")

registerHintProvider(provider, languageIds, priority)

The method by which a CodeHintProvider registers its willingness to providing hints for editors in a given language.

Kind: global function

ParamTypeDescription
providerCodeHintProviderThe hint provider to be registered, described below.
languageIdsArray.<string>The set of language ids for which the provider is capable of providing hints. If the special language id name "all" is included then the provider may be called for any language.
prioritynumberUsed to break ties among hint providers for a particular language. Providers with a higher number will be asked for hints before those with a lower priority value. Defaults to zero.

hasValidExclusion(exclusion, textAfterCursor) ⇒ boolean

Test whether the provider has an exclusion that is still the same as text after the cursor.

Kind: global function
Returns: boolean - true if the exclusion is not null and is exactly the same as textAfterCursor, false otherwise.

ParamTypeDescription
exclusionstringText not to be overwritten when the provider inserts the selected hint.
textAfterCursorstringText that is immediately after the cursor position.

isOpen() ⇒ boolean

Test if a hint popup is open.

Kind: global function
Returns: boolean - - true if the hints are open, false otherwise.