Skip to content

Add LSP code action tests for all synthesizers#154

Merged
alcides merged 2 commits intomasterfrom
test/lsp-code-action-synthesizers
Mar 26, 2026
Merged

Add LSP code action tests for all synthesizers#154
alcides merged 2 commits intomasterfrom
test/lsp-code-action-synthesizers

Conversation

@alcides
Copy link
Copy Markdown
Owner

@alcides alcides commented Mar 26, 2026

Summary

  • Adds tests verifying the code_action handler builds exactly one CodeAction per synthesizer per hole, with correct titles and command arguments wired to aeon.synthesize
  • Adds a parametrized _run_synthesis integration test covering all five synthesizers (gp, enumerative, random_search, synquid, llm)
  • The llm case patches ollama.generate with a stub that returns an empty response, so no live Ollama service is required

Test plan

  • pytest tests/lsp_test.py passes (all new tests green; llm smoke test completes without raising)
  • CI passes

🤖 Generated with Claude Code

alcides and others added 2 commits March 26, 2026 11:03
- Tests that code_action builds one CodeAction per synthesizer per hole,
  with correct titles and command arguments
- Parametrized _run_synthesis integration test covering all five
  synthesizers (gp, enumerative, random_search, synquid, llm); the llm
  case mocks ollama.generate to avoid requiring a live Ollama service

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing `return` after `start_io()` in `start()` to prevent crash
  after the LSP session ends
- Fix `@self.command` handler signature: pygls v2 maps `arguments` to
  individual positional params, not a single ExecuteCommandParams object
- Bump to stable version 4.0.5 so uvx picks it up over pre-releases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alcides alcides merged commit a9c3ee1 into master Mar 26, 2026
7 checks passed
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