diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-27 03:01:13 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-27 03:01:13 +0000 |
commit | a911d39178540078c8ff5bc880418478d7433c40 (patch) | |
tree | f23b6a0f6bf9f548e7e43cf2405e864eba99b21e /support/texlab/src/workspace/children_expand.rs | |
parent | 740a11f29a3551babe3d7edbb57ac3baa2280a3f (diff) |
CTAN sync 202202270301
Diffstat (limited to 'support/texlab/src/workspace/children_expand.rs')
-rw-r--r-- | support/texlab/src/workspace/children_expand.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/texlab/src/workspace/children_expand.rs b/support/texlab/src/workspace/children_expand.rs index 006e7b17e2..8fecf2d503 100644 --- a/support/texlab/src/workspace/children_expand.rs +++ b/support/texlab/src/workspace/children_expand.rs @@ -1,5 +1,7 @@ -use std::sync::Arc; +use std::{path::PathBuf, sync::Arc}; +use anyhow::Result; +use notify::RecursiveMode; use rayon::iter::{IntoParallelIterator, ParallelIterator}; use crate::{ @@ -89,4 +91,8 @@ impl<W: Workspace> Workspace for ChildrenExpander<W> { 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) + } } |