-
Notifications
You must be signed in to change notification settings - Fork 322
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
Initialize Language Server on Client Connection #1535
Conversation
Had to remove the failing test because it assumes that the language server is initialized on project/open command. Not proud of that, but I wasn't able to come up with the idea of how to make it work 😐 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Please use Future.sequence
instead of fold. Can you roll out a new release candidate?
resources.foldLeft(Future.successful(InitializationComponent.Initialized)) { | ||
(action, resource) => action.flatMap(_ => resource.init()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Future
has a combinator for that Future.sequence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Future.sequence
takes Seq[Future]
, meaning that all futures are started at once. I need sequential behavior, when the next action starts after the previous is complete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm only approving the changes to .github/settings.yml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only reviewed the CI config.
It looks good overall, but please update also the legal-review.yml
to be consistent.
Also release-update-broken.yml
must definitely be updated because it also uses aws cli.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI config looks good
Pull Request Description
close #1403
Lazy initialization of the Language Server.
Changelog:
InitializationComponent
containing the init logicMainModule
does not create the directories or initializes the databases, or the truffle contextJsonConnectionController
runs initialization logic when receiving theInitProtocolConnection
messageImportant Notes
Checklist
Please include the following checklist in your PR: