ZIm/crates/extension/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
..
types extension: Update DAP extension API (#32448) 2025-06-16 16:25:32 +02:00
extension.rs extension: Another batch of updates for DAP extension API (#32809) 2025-06-16 21:34:05 +02:00
extension_builder.rs Sync extension debuggers to remote host (#33876) 2025-07-04 23:26:09 +02:00
extension_events.rs agent: Remove context server settings when uninstalling MCP extension (#32560) 2025-06-11 19:30:03 +00:00
extension_host_proxy.rs Stop extensions' servers and message loops before removing their files (#34208) 2025-07-10 19:25:10 +00:00
extension_manifest.rs Allow remote loading for DAP-only extensions (#33981) 2025-07-06 14:52:16 +02:00
types.rs Redact command environment variables from log output (#32985) 2025-06-21 11:19:23 -04:00