Fix resolving include commands of import package

See #885.
This commit is contained in:
Patrick Förster 2023-05-07 11:56:45 +02:00
parent e024e0d44f
commit 321fa267ef
4 changed files with 76 additions and 2 deletions

View file

@ -92,10 +92,12 @@ impl Semantics {
}
let Some(path) = import.file().and_then(|path| path.key()) else { return };
let text = format!("{base_dir}{}", path.to_string());
let range = latex::small_range(&path);
self.links.push(Link {
kind: LinkKind::Tex,
path: Span::from(&path),
path: Span { text, range },
base_dir: Some(base_dir),
});
}