mirror of https://github.com/helix-editor/helix
feat: notify LSPs when moving path in File Explorer
parent
674afbfd89
commit
4133e14a5e
|
@ -507,7 +507,8 @@ pub fn file_explorer(
|
||||||
move_to_str: &str,
|
move_to_str: &str,
|
||||||
move_from: &Path| {
|
move_from: &Path| {
|
||||||
let move_to = helix_stdx::path::expand_tilde(PathBuf::from(move_to_str));
|
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!(
|
format!(
|
||||||
"Unable to move {} {} -> {}: {err}",
|
"Unable to move {} {} -> {}: {err}",
|
||||||
if move_to_str.ends_with(std::path::MAIN_SEPARATOR) {
|
if move_to_str.ends_with(std::path::MAIN_SEPARATOR) {
|
||||||
|
|
Loading…
Reference in New Issue