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

Single file support WIP #5531

Closed
wants to merge 7 commits into from

Conversation

kasiaMarek
Copy link
Contributor

@kasiaMarek kasiaMarek commented Aug 8, 2023

A fast solution to add single file support.
resolves: scalameta/metals-feature-requests#231

TODO:

  • cap the number of scala-cli servers
  • abstract MetalsLspServer so it doesn't need a main connection
  • adjust things like doctor

@kasiaMarek kasiaMarek requested a review from tgodzik August 8, 2023 09:17
Copy link
Contributor

@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.

The approach looks good! I think we can go that direction, sorry for so late a review.

@@ -153,6 +154,29 @@ class WorkspaceLspService(
languageClient,
)

val fallbackService: FallbackMetalsLspService = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could create it lazily?

buildTargets: BuildTargets,
)(implicit ec: ExecutionContextExecutorService)
extends Cancelable {
val buildTargetsData = new TargetData
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it used?

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.

Allow working with an empty workspace
2 participants