Skip to content

Fix aeon.synthesize command registration for pygls v2#153

Merged
alcides merged 1 commit intomasterfrom
presentation_demos
Mar 26, 2026
Merged

Fix aeon.synthesize command registration for pygls v2#153
alcides merged 1 commit intomasterfrom
presentation_demos

Conversation

@alcides
Copy link
Copy Markdown
Owner

@alcides alcides commented Mar 26, 2026

Summary

  • Fixes "Invalid Params: Command name 'aeon.synthesize' is not defined" error in VS Code lightbulb
  • Root cause: pygls v2 dispatches workspace/executeCommand by looking up fm.commands (populated by @server.command()), but the server was using @self.feature(WORKSPACE_EXECUTE_COMMAND, ExecuteCommandOptions(...)) which only populates fm.features
  • Fix: one-line change — replace the feature decorator with @self.command(SYNTHESIZE_COMMAND)

🤖 Generated with Claude Code

pygls v2 dispatches workspace/executeCommand via fm.commands, which is
populated by @server.command(), not @server.feature(WORKSPACE_EXECUTE_COMMAND).
Replace the feature-based registration with @self.command(SYNTHESIZE_COMMAND).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alcides alcides merged commit 2ed4971 into master Mar 26, 2026
7 checks passed
@alcides alcides deleted the presentation_demos branch March 26, 2026 00:25
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