Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/handlers/lsp.rs')
| -rw-r--r-- | helix-view/src/handlers/lsp.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/helix-view/src/handlers/lsp.rs b/helix-view/src/handlers/lsp.rs index 96ab4626..771d4b3b 100644 --- a/helix-view/src/handlers/lsp.rs +++ b/helix-view/src/handlers/lsp.rs @@ -248,9 +248,11 @@ impl Editor { } fs::write(path, [])?; - self.language_servers - .file_event_handler - .file_changed(path.to_path_buf()); + if !cfg!(any(target_os = "linux", target_os = "android")) { + self.language_servers + .file_event_handler + .file_changed(path.to_path_buf()); + } } } ResourceOp::Delete(op) => { @@ -268,11 +270,13 @@ impl Editor { } else { fs::remove_dir(path)? } - self.language_servers - .file_event_handler - .file_changed(path.to_path_buf()); } else if path.is_file() { fs::remove_file(path)?; + if !cfg!(any(target_os = "linux", target_os = "android")) { + self.language_servers + .file_event_handler + .file_changed(path.to_path_buf()); + } } } ResourceOp::Rename(op) => { |