fix templating bug for parseable entire files

This commit is contained in:
KCaverly 2023-07-31 11:41:18 -04:00
parent ca4e21881e
commit 89edb3d1b5

View File

@ -59,7 +59,7 @@ impl CodeContextRetriever {
let document_span = ENTIRE_FILE_TEMPLATE
.replace("<path>", relative_path.to_string_lossy().as_ref())
.replace("<language>", language_name.as_ref())
.replace("item", &content);
.replace("<item>", &content);
Ok(vec![Document {
range: 0..content.len(),