From 9df6d4827160fc2f83b799ed9036060113e7a74e Mon Sep 17 00:00:00 2001 From: Yomain Date: Sun, 22 Oct 2023 19:07:30 +0200 Subject: [PATCH] feat: sending lsp file_changed event once file has moved --- helix-term/src/commands/typed.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index ee7823de876ae..c9ba4d605ccbf 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2475,6 +2475,11 @@ fn move_buffer( lsp.did_file_rename(&old_path_as_url, &new_path_as_url); }); + cx.editor + .language_servers + .file_event_handler + .file_changed(new_path); + Ok(()) }