Skip to content

Conversation

Sehouz
Copy link
Contributor

@Sehouz Sehouz commented Oct 15, 2025

this pr set the MOON_HOME for lsp and flake dev template to make vscode extension detect the lsp and core lib correctly.

Comment on lines +37 to +41
env = [
{
name = "MOON_HOME";
value = "${pkgs.moonbit-bin.moonbit.latest}";
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this needed? Isn't the MOON_HOME env provided when wrapping in lib/bundle.nix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vscdoe extension needs this
Only setting the environment variable in the devshell envs make the extension use lsp in our package instead of the one bundled in extension.

@jetjinser jetjinser merged commit fff17f8 into moonbit-community:master Oct 16, 2025
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.

2 participants