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

Ensure BSP respects --power mode #2997

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Jul 2, 2024

Fixes #2678

This ensures the bsp sub-command (as called by an IDE) picks up on --power mode being set by:

  • the --power launcher option being passed to setup-ide
  • the --power sub-command option being passed to setup-ide
  • the SCALA_CLI_POWER environment variable being passed to setup-ide
  • the power key of the config sub-command

If any single one of these sets power mode on, BSP will pick it up.

Power mode should also be picked up by a running BSP server's workspace/reload when setup-ide or config are called.

Note: once power mode gets picked up by BSP, we don't turn it off at any point, even when explicitly passed to setup-ide. This is intentional behaviour, as we don't want to break anyone's existing IDE import to break. If you care for power mode to be turned off in your IDE, you need to explicitly restart the BSP server.

Copy link
Member

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM

@Gedochao Gedochao merged commit a962834 into VirtusLab:main Jul 4, 2024
75 checks passed
@Gedochao Gedochao deleted the maintenance/bsp-power branch July 4, 2024 13:20
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.

--power not reflected via --json-options for bsp subcommand
3 participants