Skip to content

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.

any

Scope object you want to provide completions for. For example window.

Iterable<string, any, any>

LList of identifiers that should be completed even if they’re not found in the document.

CompletionSource<JSContext>