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

Use extension context for output window disposable #671

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

dhruvmanila
Copy link
Member

Summary

I noticed this in #585 that we would not be able to look at the error message when the server crashes because the output window got disposed. This is because the disposable is tied up with stopping the server. This PR updates that to include the disposable to the extension context so that it gets disposed only when the extension is deactivated.

Test Plan

Run the scenario from #585 to make sure that the "Ruff Language Server" window is not disposed in case the server crashed.

@dhruvmanila dhruvmanila merged commit 099da0e into main Jan 21, 2025
6 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/use-extension-context branch January 21, 2025 05:01
dhruvmanila added a commit that referenced this pull request Jan 22, 2025
These channels should only be created once during the activation of the
extension. Otherwise, restarting the extension hangs.
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