CompletionContext

constructor(state: EditorState, pos: DocPos, explicit: Boolean)

Parameters

state

The current editor state.

pos

The cursor position where completion was triggered.

explicit

Whether completion was explicitly requested (e.g. Ctrl-Space).