Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure lsp custom options during install #1481

Closed
wants to merge 17 commits into from

Conversation

ericvergnaud
Copy link
Contributor

Each transpiler may require options that remorph doesn't know about, but need to be configured via the CLI before
calling the transpiler.

This PR implements a mechanism for doing so, as follows:

  • the TranspileConfig structure now comprises a transpiler_options entry that can hold key/value pairs
  • the transpiler config.yml now comprises an optional options section which describes CLI actions for populating the transpiler_options above. 4 actions are supported: FORCE, CONFIRM, QUESTION and CHOICE.
  • the CLI uses the above section to interact with the user and gather configuration options
  • the LSP client passes these options to the server as part of initialization

Fixes #1478

Copy link

github-actions bot commented Mar 7, 2025

✅ 13/13 passed, 1 skipped, 15s total

Running from acceptance #276

@ericvergnaud ericvergnaud deleted the configure-lsp-custom-options-during-install branch March 10, 2025 16:07
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.

[FEATURE]: Let remorph manage options specific to a transpiler
1 participant