ZIm/crates/remote_server/src
Kirill Bulatov c6603e4fba
Stop extensions' servers and message loops before removing their files (#34208)
Fixes an issue that caused Windows to fail when removing extension's
directories, as Zed had never stop any related processes.

Now:

* Zed shuts down and waits until the end when the language servers are
shut down

* Adds `impl Drop for WasmExtension` where does
`self.tx.close_channel();` to stop a receiver loop that holds the "lock"
on the extension's work dir.
The extension was dropped, but the channel was not closed for some
reason.

* Does more unregistration to ensure `Arc<WasmExtension>` with the `tx`
does not leak further

* Tidies up the related errors which had never reported a problematic
path before

Release Notes:

- N/A

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
Co-authored-by: Smit <smit@zed.dev>
2025-07-10 19:25:10 +00:00
..
headless_project.rs Stop extensions' servers and message loops before removing their files (#34208) 2025-07-10 19:25:10 +00:00
main.rs Replace environment variable parser with zed --printenv outputting JSON (#32637) 2025-06-13 11:49:15 -04:00
remote_editing_tests.rs Respect server capabilities on queries (#33538) 2025-06-27 16:31:40 +00:00
remote_server.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
unix.rs Fix script/symbolicate for Linux panic reports (#33822) 2025-07-03 01:04:27 +00:00