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

POC: Make BSP modular and support dynamic extensions #2970

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

lefou
Copy link
Member

@lefou lefou commented Jan 14, 2024

Introduce a BspExtension trait, which holds a class name and it's potential ivy dependencies.

Split up the various BSP server extensions and instantiate them independently. They are now concrete classes with either a default contructor or one accepting the new MillBuildServerBase parameter.

The BspModule now has a new bspExtensions method, which declares what BSP extension should be used to support the module. The extension is loaded via reflection. JavaModule and ScalaModule now explicitly declare their extensions. That means, if no ScalaModule is part of the project, we also should not load the extension.

@lefou lefou force-pushed the bsp-modular branch 2 times, most recently from 5a6ec74 to 6e12d8f Compare January 14, 2024 09:37
@lefou lefou mentioned this pull request Jan 14, 2024
@lefou
Copy link
Member Author

lefou commented Feb 6, 2024

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.

Provide a way to extend the Mill BSP server
1 participant