Skip to content
# Class: CursorContextAnalyzer

Defined in: packages/core/src/utils/CursorContextAnalyzer.ts:60

Constructors ​

Constructor ​

new CursorContextAnalyzer(): CursorContextAnalyzer

Returns ​

CursorContextAnalyzer

Methods ​

analyzeIntelliSense() ​

static analyzeIntelliSense(sql, cursorPosition): IntelliSenseContext

Defined in: packages/core/src/utils/CursorContextAnalyzer.ts:206

Analyze cursor position for IntelliSense suggestions

Direct implementation that determines what suggestions can be provided without legacy context conversion overhead.

Parameters ​

sql ​

string

SQL text to analyze

cursorPosition ​

number

Character position (0-based)

Returns ​

IntelliSenseContext

IntelliSense context focused on what suggestions can be provided


analyzeIntelliSenseAt() ​

static analyzeIntelliSenseAt(sql, position): IntelliSenseContext

Defined in: packages/core/src/utils/CursorContextAnalyzer.ts:365

Analyze cursor position for IntelliSense at line/column position

Parameters ​

sql ​

string

position ​

LineColumn

Returns ​

IntelliSenseContext

Released under the MIT License.