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

Abandon Terminating Language Server #1463

Merged
merged 6 commits into from
Feb 11, 2021
Merged

Conversation

4e6
Copy link
Contributor

@4e6 4e6 commented Feb 10, 2021

Pull Request Description

close #1430

Wait for the LS shutdown, spawn the new one, and only then reply to the client.

Important Notes

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the Scala, Java, and Rust style guides.
  • All documentation and configuration conforms to the markdown and YAML style guides.
  • All code has been tested where possible.

@4e6 4e6 added Type: Enhancement p-high Should be completed in the next sprint labels Feb 10, 2021
@4e6 4e6 self-assigned this Feb 10, 2021
@4e6 4e6 requested a review from radeusgd February 10, 2021 14:50
Copy link
Member

@radeusgd radeusgd left a comment

Choose a reason for hiding this comment

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

Looks great now - simple and safe :)

@@ -221,6 +221,7 @@ class LanguageServerController(
case ServerDied =>
log.error(s"Language server died [$connectionInfo]")
context.stop(self)

Copy link
Member

Choose a reason for hiding this comment

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

This empty line seems unnecessary.

@4e6 4e6 merged commit 5ba3b5d into main Feb 11, 2021
@4e6 4e6 deleted the wip/db/language-server-restart branch February 11, 2021 12:44
iamrecursion pushed a commit that referenced this pull request Feb 15, 2021
Wait for the LS shutdown, spawn the new one,
and only then reply to the client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-high Should be completed in the next sprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error When Trying to Restart the IDE with Integrated Language Server
2 participants