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

Simplify shutdown logic on client disconnect in project-manager #11712

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

hubertp
Copy link
Collaborator

@hubertp hubertp commented Nov 29, 2024

Pull Request Description

Suspend on Windows confuses the re-connection logic by essentially triggering a full
language server shutdown when waking up from suspend.
This change simply drops logic that delayed shutdown after last client disconnect.
project-manager now expects an explicit request to shutdown.

Partially fixes #11389 (no more app crash). This bug unmasks a bug in GUI where multiple
execution context requests are being made on re-connect.

Partially cherry-picked from experiments in #11518.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.

Suspend on Windows confuses the reconnection logic and triggers a full
shutdown. This change simply drop shutdown on last client disconnect and
expects and explicit command.
Minor cherry-picks from the debugging branch. Should reduce  the amount
of non-critical warnings.
@hubertp hubertp added the CI: No changelog needed Do not require a changelog entry for this PR. label Nov 29, 2024
@hubertp hubertp merged commit 65010df into develop Dec 2, 2024
45 checks passed
@hubertp hubertp deleted the wip/hubert/11389-ls-shutdown branch December 2, 2024 20:19
jdunkerley pushed a commit that referenced this pull request Dec 3, 2024
* Drop soft-shutdown on last client disconnect

Suspend on Windows confuses the reconnection logic and triggers a full
shutdown. This change simply drop shutdown on last client disconnect and
expects and explicit command.

* Various cherry-picks

Minor cherry-picks from the debugging branch. Should reduce  the amount
of non-critical warnings.

(cherry picked from commit 65010df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resuming from hibernation crashes the application (Windows)
2 participants