Skip to content

Add LSP server for Sidemantic SQL dialect#10

Merged
nicosuave merged 1 commit intomainfrom
lsp-server-clean
Dec 3, 2025
Merged

Add LSP server for Sidemantic SQL dialect#10
nicosuave merged 1 commit intomainfrom
lsp-server-clean

Conversation

@nicosuave
Copy link
Copy Markdown
Member

Summary

Adds a Language Server Protocol (LSP) server for editor support when writing Sidemantic SQL definition files (.sql files using MODEL, DIMENSION, METRIC syntax).

Features:

  • Autocompletion for keywords: MODEL, DIMENSION, METRIC, RELATIONSHIP, SEGMENT
  • Context-aware property suggestions with documentation (name, type, sql, agg, etc.)
  • Validation errors via pydantic model checks
  • Hover documentation for keywords and properties

Usage:

sidemantic lsp  # Starts server on stdio

Note: This is specifically for the Sidemantic SQL dialect, NOT a general SQL language server.

New dependency

  • pygls and lsprotocol added as optional [lsp] extra

Provides editor support for sidemantic SQL syntax:
- Autocompletion for MODEL, DIMENSION, METRIC, RELATIONSHIP, SEGMENT
- Context-aware property suggestions with documentation
- Validation errors via pydantic model checks
- Hover information for keywords and properties

Usage: sidemantic lsp (runs on stdio for editor integration)

Dependencies: pygls, lsprotocol (optional 'lsp' extra)
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@nicosuave nicosuave merged commit 2ed34d5 into main Dec 3, 2025
10 checks passed
@nicosuave nicosuave deleted the lsp-server-clean branch December 3, 2025 17:40
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