helix-mirror/helix-vcs
kanielrkirby f0282689da
Use try_lock in diff_handle for Diff gutter (#11092)
* Use `try_lock` in `diff_handle` for Diff gutter
- Add the method `try_load() -> Option<Diff>` to `DiffHandle`, using `try_lock` to avoid deadlocks.
- Use said method in `gutter.rs diff()`, which will use a blank `GutterFn` instead when met with a locked `Diff`.

* Revert changes

* Replace `Mutex` with `RwLock` in `Diff`

---------

Co-authored-by: Kaniel Kirby <pirate7007@runbox.com>
2024-08-10 00:32:46 +09:00
..
src Use try_lock in diff_handle for Diff gutter (#11092) 2024-08-10 00:32:46 +09:00
Cargo.toml build(deps): bump the rust-dependencies group with 9 updates 2024-08-07 04:27:05 +09:00