Skip to content

Complete CASE expression keywords with nested branch context - #3

Merged
canyrtcn merged 1 commit into
mainfrom
codex/case-expression-completion
Oct 27, 2026
Merged

canyrtcn merged 1 commit into
mainfrom
codex/case-expression-completion

Conversation

@canyrtcn

Copy link
Copy Markdown
Owner

SQL completion currently misses the branch keywords in CASE expressions, such as THEN after CASE WHEN amount > 100. This change tracks the active CASE expression and its WHEN/THEN/ELSE state so the appropriate keyword is offered without prioritizing an unrelated column.

Nested CASE expressions and SELECT scopes remain separate. Expressions inside each branch continue to use normal column, alias and function completion. Query execution is unchanged.

Validation covers simple and searched CASE expressions, all four suggestion modes, nested cases, qualified keyword columns, comments and strings, plus completed SQL executed in SQLite. Hidden application tests exercise native Tab acceptance and preserve responsiveness with large SQL and result tables.

@canyrtcn
canyrtcn merged commit 2323beb into main Oct 27, 2026
2 checks passed
@canyrtcn
canyrtcn deleted the codex/case-expression-completion branch October 27, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant