ZIm/crates/indexed_docs/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
..
providers Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
extension_indexed_docs_provider.rs Stop extensions' servers and message loops before removing their files (#34208) 2025-07-10 19:25:10 +00:00
indexed_docs.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
providers.rs Start work on genericizing /rustdoc (#13745) 2024-07-02 13:14:56 -04:00
registry.rs Stop extensions' servers and message loops before removing their files (#34208) 2025-07-10 19:25:10 +00:00
store.rs editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30