Skip to content
# Function: getCursorContext()

getCursorContext(sql, cursorPosition): IntelliSenseContext

Defined in: packages/core/src/utils/IntelliSenseApi.ts:68

Analyze cursor context for IntelliSense completion suggestions

Determines what type of completions should be offered at the cursor position based on SQL syntax context (SELECT clause, WHERE condition, etc.).

Parameters

sql

string

SQL text to analyze

cursorPosition

Cursor position (character offset or line/column)

number | LineColumn

Returns

IntelliSenseContext

Cursor context information for completion logic

Released under the MIT License.