From 515aab404b29320318ac6feb45c50999e563f07b 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 c64ea61b2fe6..2c82e4dd750c 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(()) }