Skip to content

feat(lsp): model descriptions in LSP completions#4713

Merged
benfdking merged 3 commits intomainfrom
codex/add-completion-details-for-models
Jun 11, 2025
Merged

feat(lsp): model descriptions in LSP completions#4713
benfdking merged 3 commits intomainfrom
codex/add-completion-details-for-models

Conversation

@benfdking
Copy link
Copy Markdown
Contributor

Summary

  • include model description in AllModelsResponse
  • generate model completion items with descriptions
  • surface descriptions in Python LSP server
  • update VSCode client types and completion provider to show descriptions

Testing

  • ruff check sqlmesh/lsp/custom.py sqlmesh/lsp/completions.py sqlmesh/lsp/main.py
  • mypy sqlmesh/lsp/custom.py sqlmesh/lsp/completions.py sqlmesh/lsp/main.py
  • pnpm exec eslint src/lsp/custom.ts src/completion/completion.ts
  • pytest (fails: tests/cli/test_cli.py::test_environments, tests/cli/test_cli.py::test_state_export_specific_environments, tests/cli/test_cli.py::test_state_import_replace)

https://chatgpt.com/codex/tasks/task_e_68494c6469888330a33c1f2fcd3b556c

@benfdking benfdking marked this pull request as draft June 11, 2025 09:44
@benfdking benfdking force-pushed the codex/add-completion-details-for-models branch from 36e8c54 to fc2af07 Compare June 11, 2025 12:45
@benfdking benfdking marked this pull request as ready for review June 11, 2025 12:51
@benfdking benfdking force-pushed the codex/add-completion-details-for-models branch from fc2af07 to 264e398 Compare June 11, 2025 13:04
@benfdking benfdking changed the title Add model descriptions to LSP completions feat: model descriptions in LSP completions Jun 11, 2025
@benfdking benfdking changed the title feat: model descriptions in LSP completions feat(lsp): model descriptions in LSP completions Jun 11, 2025
Comment thread sqlmesh/lsp/completions.py
Copy link
Copy Markdown
Collaborator

@themisvaltinos themisvaltinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm just a minor nit in the code. also why did you end up removing the e2e test?

@benfdking benfdking merged commit e748f6f into main Jun 11, 2025
25 checks passed
@benfdking benfdking deleted the codex/add-completion-details-for-models branch June 11, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants