add php support for semantic search
This commit is contained in:
parent
89edb3d1b5
commit
599f674827
7 changed files with 275 additions and 63 deletions
|
@ -200,7 +200,12 @@ impl CodeContextRetriever {
|
|||
|
||||
let mut document_content = String::new();
|
||||
for context_range in &context_match.context_ranges {
|
||||
document_content.push_str(&content[context_range.clone()]);
|
||||
add_content_from_range(
|
||||
&mut document_content,
|
||||
content,
|
||||
context_range.clone(),
|
||||
context_match.start_col,
|
||||
);
|
||||
document_content.push_str("\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue