Skip to content

Use extension context for output window disposable#671

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/use-extension-context
Jan 21, 2025
Merged

Use extension context for output window disposable#671
dhruvmanila merged 1 commit intomainfrom
dhruv/use-extension-context

Conversation

@dhruvmanila
Copy link
Copy Markdown
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
@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