jsCompletion
jsCompletion(
scope
,identifiers?
):CompletionSource
<JSContext
>
Defined in: extensions/autocomplete/javascript/index.ts:258
Completion source that wraps completeIdentifiers and completeScope and removes duplicated options.
This means you can provide completions for both the window
and words in the document
without duplicated options.
Parameters
Section titled “Parameters”any
Scope object you want to provide completions for. For example window
.
identifiers?
Section titled “identifiers?”Iterable
<string
, any
, any
>
LList of identifiers that should be completed even if they’re not found in the document.