diff --git a/CHANGELOG.md b/CHANGELOG.md index e64e7e96..ff956a18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use bibliographies found in `BIBINPUTS` environment variable ([#493](https://github.com/latex-lsp/texlab/issues/493)) +### Fixed + +- Fix search path for aux files when using `\include` instead of `\input` ([#906](https://github.com/latex-lsp/texlab/issues/906)) + ## [5.8.0] - 2023-07-30 ### Added @@ -29,7 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix parsing paths with `|` ([#568](https://github.com/latex-lsp/texlab/issues/568)) - Fix parsing LaTeX identifiers with `=` ([#568](https://github.com/latex-lsp/texlab/issues/568)) -- Fix search path for aux files when using `\include` instead of `\input` ([[#906](https://github.com/latex-lsp/texlab/issues/906)) ## [5.7.0] - 2023-06-07 diff --git a/crates/base-db/src/graph.rs b/crates/base-db/src/graph.rs index 3e718afd..2dd732a4 100644 --- a/crates/base-db/src/graph.rs +++ b/crates/base-db/src/graph.rs @@ -137,8 +137,13 @@ impl<'a> Graph<'a> { let aux_dir = self.workspace.output_dir(base_dir, config.aux_dir.clone()); let log_dir = self.workspace.output_dir(base_dir, config.log_dir.clone()); + let relative_path = base_dir.make_relative(&source.uri).unwrap(); + + self.add_artifact(source, &aux_dir.join(&relative_path).unwrap(), "aux"); self.add_artifact(source, &aux_dir, "aux"); self.add_artifact(source, base_dir, "aux"); + + self.add_artifact(source, &log_dir.join(&relative_path).unwrap(), "log"); self.add_artifact(source, &log_dir, "log"); self.add_artifact(source, base_dir, "log"); }