feat: notify LSPs when moving path in File Explorer

pull/12902/head
Nikita Revenco 2025-02-28 14:33:28 +00:00
parent 674afbfd89
commit 4133e14a5e
1 changed files with 2 additions and 1 deletions

View File

@ -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) {