Skip to content

CompletionContext

Defined in: extensions/autocomplete/types.ts:133

before: string

Defined in: extensions/autocomplete/types.ts:135

The code before the cursor.


explicit: boolean

Defined in: extensions/autocomplete/types.ts:143

True if the completion was started explicitly with Ctrl+Space. False otherwise.


language: string

Defined in: extensions/autocomplete/types.ts:141

The language at the cursor’s position.


lineBefore: string

Defined in: extensions/autocomplete/types.ts:137

The line before the cursor.


pos: number

Defined in: extensions/autocomplete/types.ts:139

The cursor’s position in the document.