Skip to content

Send progress-end messages before shutting down #96

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
merged 2 commits into from
Jan 5, 2022
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jan 4, 2022

Please check if the PR fulfills these requirements

  • What kind of change does this PR introduce?
    This is required because the IDE does not correctly clean up resources once the language server is shutdown.
  • What is the current behavior?
    The language server shutdown without any further message.
  • What is the new behavior?
    The language server sends a progress-end for any pending progress channel open.

This is required because the IDE does not correctly clean up resources
once the language server is shutdown.
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

When using versions of Arduino Language Server from the tip of the main branch (d3def8a) and earlier, I was able to cause the Arduino IDE 2.x to apparently hang in the "indexing" state by changing the board selection (and thus triggering a new indexing process) while an indexing process was in progress.

I am no longer able to reproduce that issue when using the build from this PR.

Great work Cristian!

@cmaglie cmaglie merged commit 472ef9b into main Jan 5, 2022
@cmaglie cmaglie deleted the fix_progress_leak branch January 5, 2022 09:09
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.

2 participants