mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-03 18:29:03 +00:00
parent
e024e0d44f
commit
321fa267ef
4 changed files with 76 additions and 2 deletions
|
@ -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),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue