fix(knowledge): keep diagnostic positions in u32 source span representation

This commit is contained in:
cflmy committed 2026-11-18 12:01:42 +08:00
1 parent 12523fea4f
commit 20f7602eb4
1 file changed
+1 -1
+1 -1
View File
@@ -339,7 +339,7 @@ fn compile_index(index: ProjectIndex) -> Result<Compilation> {
diagnostics.push(
Diagnostic::new(
Some(root.path().join(&reference.source.file)),
Span::new(reference.source.line as usize, 1),
Span::new(reference.source.line, 1),
format!("knowledge anchor target not found or ambiguous: {}",
reference.link_target.as_deref().unwrap_or("<missing>")),
)