summaryrefslogtreecommitdiff
path: root/support/texlab/crates/base-db/src/graph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/base-db/src/graph.rs')
-rw-r--r--support/texlab/crates/base-db/src/graph.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/texlab/crates/base-db/src/graph.rs b/support/texlab/crates/base-db/src/graph.rs
index 2dd732a449..46b9038de8 100644
--- a/support/texlab/crates/base-db/src/graph.rs
+++ b/support/texlab/crates/base-db/src/graph.rs
@@ -96,7 +96,10 @@ impl<'a> Graph<'a> {
let distro_files = file_names
.iter()
.filter_map(|name| file_name_db.get(name))
- .filter(|path| home_dir.map_or(false, |dir| path.starts_with(dir)))
+ .filter(|path| {
+ home_dir.map_or(false, |dir| path.starts_with(dir))
+ || Language::from_path(path) == Some(Language::Bib)
+ })
.flat_map(Url::from_file_path);
for target_uri in file_names
@@ -123,6 +126,8 @@ impl<'a> Graph<'a> {
target,
weight,
});
+
+ break;
}
None => {
self.missing.push(target_uri);