Skip to content

completeScope

completeScope(scope, commitChars?): CompletionSource<{ path: string[] | null; }>

Defined in: extensions/autocomplete/javascript/index.ts:159

Returns a completion source that adds completions for a scope object.

any

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

string

If a character in this string is typed and one of these options is selected, the option is inserted right before typing that character.

CompletionSource<{ path: string[] | null; }>