diff options
Diffstat (limited to 'support/texlab/src/workspace/parent_expand.rs')
-rw-r--r-- | support/texlab/src/workspace/parent_expand.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/texlab/src/workspace/parent_expand.rs b/support/texlab/src/workspace/parent_expand.rs index 33b0ca3c5e..0eef06ce92 100644 --- a/support/texlab/src/workspace/parent_expand.rs +++ b/support/texlab/src/workspace/parent_expand.rs @@ -1,5 +1,7 @@ -use std::{fs, sync::Arc}; +use std::{fs, path::PathBuf, sync::Arc}; +use anyhow::Result; +use notify::RecursiveMode; use rayon::iter::{IntoParallelIterator, ParallelIterator}; use rustc_hash::FxHashSet; @@ -96,6 +98,10 @@ where fn subset(&self, uri: Arc<Uri>) -> Option<WorkspaceSubset> { self.workspace.subset(uri) } + + fn watch(&self, path: PathBuf, mode: RecursiveMode) -> Result<()> { + self.workspace.watch(path, mode) + } } impl<W> ParentExpander<W> |