Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/typed.rs')
-rw-r--r--helix-term/src/commands/typed.rs24
1 files changed, 14 insertions, 10 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 4831b938..cf052be2 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1400,11 +1400,13 @@ fn reload(cx: &mut compositor::Context, _args: Args, event: PromptEvent) -> anyh
doc.reload(view, &cx.editor.diff_providers).map(|_| {
view.ensure_cursor_in_view(doc, scrolloff);
})?;
- if let Some(path) = doc.path() {
- cx.editor
- .language_servers
- .file_event_handler
- .file_changed(path.clone());
+ if !cfg!(any(target_os = "linux", target_os = "android")) {
+ if let Some(path) = doc.path() {
+ cx.editor
+ .language_servers
+ .file_event_handler
+ .file_changed(path.clone());
+ }
}
Ok(())
}
@@ -1446,11 +1448,13 @@ fn reload_all(cx: &mut compositor::Context, _args: Args, event: PromptEvent) ->
continue;
}
- if let Some(path) = doc.path() {
- cx.editor
- .language_servers
- .file_event_handler
- .file_changed(path.clone());
+ if !cfg!(any(target_os = "linux", target_os = "android")) {
+ if let Some(path) = doc.path() {
+ cx.editor
+ .language_servers
+ .file_event_handler
+ .file_changed(path.clone());
+ }
}
for view_id in view_ids {