CompletionContext
Context passed to completion sources.
Parameters
state
The current editor state.
pos
The cursor position where completion was triggered.
explicit
Whether completion was explicitly requested (e.g. Ctrl-Space).
Properties
Functions
Link copied to clipboard
Match pattern against the text directly before the cursor on the current line (at most 250 characters back), returning the leftmost match that ends at the cursor, or null.
Link copied to clipboard