mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-12-23 09:19:21 +00:00
Use current dir as fallback watch location
Watch the current working directory if no auxiliary directory is set. See #679.
This commit is contained in:
parent
b175fcf903
commit
e7906cfe85
1 changed files with 4 additions and 3 deletions
|
|
@ -747,9 +747,10 @@ impl Server {
|
|||
)?;
|
||||
}
|
||||
|
||||
if let Some(path) = &self.workspace.environment.options.aux_directory {
|
||||
let _ = self.workspace.watch(path);
|
||||
}
|
||||
let _ = match &self.workspace.environment.options.aux_directory {
|
||||
Some(path) => self.workspace.watch(path),
|
||||
None => self.workspace.watch(&PathBuf::from(".")),
|
||||
};
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue