Add LSP code action tests for all synthesizers#154
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
code_actionhandler builds exactly oneCodeActionper synthesizer per hole, with correct titles and command arguments wired toaeon.synthesize_run_synthesisintegration test covering all five synthesizers (gp,enumerative,random_search,synquid,llm)llmcase patchesollama.generatewith a stub that returns an empty response, so no live Ollama service is requiredTest plan
pytest tests/lsp_test.pypasses (all new tests green; llm smoke test completes without raising)🤖 Generated with Claude Code