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

bugfix: Remove pausing and window state monitoring #7097

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jan 9, 2025

I finally managed to reproduce an issue where no compilation would be done, turns out that batched functions went into a wrong state and never unpaused. In that case any request would be silently ignored.

Since, this looks tricky to make work and the advantage is minimal I think it's best to remove it altogether. It could be useful if we had two heavy compilations one after another, but that very rarely happens, since the next compilation is usually noop.

@tgodzik tgodzik requested a review from kasiaMarek January 9, 2025 17:17
@tgodzik tgodzik force-pushed the remove-pausing branch 2 times, most recently from 37e3d38 to 6a770f6 Compare January 9, 2025 17:24
I finally managed to reproduce an issue where not compilation would be done, turns out the batched functions went into a wrong state and never unpaused. In that case any request would be silently ignored.

Since, this looks tricky to make work and the advantage is minimal I think it's best to remove it altogether. It could be useful if we had two heavy compilations one after another, but that very rarely happens, since the next compilation is usually noop.
@tgodzik tgodzik merged commit 5d07321 into scalameta:main Jan 9, 2025
22 of 23 checks passed
@tgodzik tgodzik deleted the remove-pausing branch January 9, 2025 18:51
@filipwiech
Copy link
Contributor

Great to see one less custom LSP extension! 👍

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.

3 participants