From f7032f4004d8768c75c48ae22255bdfe5151b32c 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 ed87e622b9c04..48f1f46cd1e7e 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2477,6 +2477,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(()) }