Skip to content

Commit 2519968

Browse files
committed
test: debug import path and import field
1 parent 651b889 commit 2519968

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/state.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,19 @@ impl ProtoLanguageState {
137137

138138
// After content is upserted, those imports which couldn't be located
139139
// are flagged as import error
140+
tracing::info!(?ipath, "import path");
140141
self.get_tree(uri)
141142
.map(|t| t.get_import_paths(content.as_ref()))
142143
.unwrap_or_default()
143144
.into_iter()
144145
.map(ToOwned::to_owned)
145-
.filter(|import| !ipath.iter().any(|p| p.join(import.as_str()).exists()))
146+
.filter(|import| {
147+
tracing::info!(
148+
%import,
149+
"trying import",
150+
);
151+
!ipath.iter().any(|p| p.join(import.as_str()).exists())
152+
})
146153
.collect()
147154
}
148155

0 commit comments

Comments
 (0)