Autocomplete.Context
SourceAn instance of this is passed to completion source functions.
Completion context
The editor state that the completion happens in.
Indicates whether completion was activated explicitly, or implicitly by typing. The usual way to respond to this is to only return completions when either there is part of a completable entity before the cursor, or explicit is true.
Get the extent, content, and (if there is a token) type of the token before this.pos.
Get the match of the given expression directly before the cursor.