Skip to content

completeScope

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

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

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

any

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

string

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

string

Commit characters for functions in the scope. If a character in this string is typed and one of these options is selected, the option is inserted right before typing that character. Defaults to commitChars.

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