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

Standard language server should also be able to exit on shutdown. #1808

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

rgrunber
Copy link
Contributor

@rgrunber rgrunber commented Jun 25, 2021

The standard language server has the same issue the syntax server did. It doesn't exit immediately on shutdown request. It relies on the parent process watcher, but I believe that can take up to 30s in the worst case.

  • "syntaxServerExitsOnShutdown" -> "shouldLanguageServerExitOnShutdown"
  • Shut down the standard language server on shutdown() similar to the
    syntax server, when "shouldLanguageServerExitOnShutdown" extended
    capability is enabled
  • Unlike the syntax server shutdown, the standard server has no issues
    if shutdown() returns to the client, before exit() completes

Signed-off-by: Roland Grunberg [email protected]

- "syntaxServerExitsOnShutdown" -> "shouldLanguageServerExitOnShutdown"
- Shut down the standard language server on shutdown() similar to the
  syntax server, when "shouldLanguageServerExitOnShutdown" extended
  capability is enabled
- Unlike the syntax server shutdown, the standard server has no issues
  if shutdown() returns to the client, before exit() completes

Signed-off-by: Roland Grunberg <[email protected]>
@rgrunber rgrunber added this to the MId June 2021 milestone Jun 28, 2021
@rgrunber rgrunber merged commit 7005bb5 into eclipse-jdtls:master Jun 28, 2021
@rgrunber rgrunber deleted the exit-on-shutdown branch June 28, 2021 20:06
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.

1 participant