From 4133e14a5e23311947ecc00be373ed81cce745e9 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Fri, 28 Feb 2025 14:33:28 +0000 Subject: [PATCH] feat: notify LSPs when moving path in File Explorer --- helix-term/src/ui/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 32ef00f03..81392991e 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -507,7 +507,8 @@ pub fn file_explorer( move_to_str: &str, move_from: &Path| { let move_to = helix_stdx::path::expand_tilde(PathBuf::from(move_to_str)); - if let Err(err) = fs::rename(move_from, &move_to).map_err(|err| { + + if let Err(err) = cx.editor.move_path(move_from, &move_to).map_err(|err| { format!( "Unable to move {} {} -> {}: {err}", if move_to_str.ends_with(std::path::MAIN_SEPARATOR) {