Skip to content

CompletionContext

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

before: string

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

The code before the cursor.


explicit: boolean

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

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


language: string

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

The language at the cursor’s position.


lineBefore: string

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

The line before the cursor.


pos: number

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

The cursor’s position in the document.