Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed LS stops working after OS sleep/wakeup cycle #1021

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

Merged
kittaakos merged 1 commit into main from zube-#10912
Jun 7, 2022
Merged

Conversation

Copy link
Contributor

@kittaakos kittaakos commented Jun 3, 2022

Motivation

This PR should fix the unresponsive language feature after waking up the OS from sleep.

Change description

Theia does not fire an event when the connection to the plugin server proxy closes. Theia also does not fire an event if the hosted plugins have been re-loaded. This PR adds hooks for such events, and wires in the lifecycle of the LS to the new events exposed from the hosted plugins.

Other information

Steps to verify:

  • Start IDE2,
  • Verify LS is functional,
  • Put the OS into sleep (I do not know if it works on Windows/Linux, but it's reliable on macOS),
  • Wake up the OS,
  • The LS must work (try the content assist)

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

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

tested and works
I have first used RC6 to make sure that upon sleep (on Mac) it would fail to trigger code assist and then installed this build to do the same.
LGTM

Copy link
Contributor

@fstasi fstasi left a comment

Choose a reason for hiding this comment

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

clever solution! should we propose this to theia? @kittaakos

Copy link
Contributor Author

should we propose this to theia? @kittaakos

I did: eclipse-theia/theia#11252. No interest. 🦗

@kittaakos kittaakos merged commit d780961 into main Jun 7, 2022
@kittaakos kittaakos deleted the zube-#10912 branch June 7, 2022 08:31
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ubidefeo ubidefeo ubidefeo approved these changes

@per1234 per1234 Awaiting requested review from per1234

+1 more reviewer

@fstasi fstasi fstasi approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /