update treesitter parsing to accomodate for collapsed nested functions
Co-authored-by: maxbrunsfeld <max@zed.dev>
This commit is contained in:
parent
0e071919a0
commit
9809ec3d70
9 changed files with 773 additions and 584 deletions
|
@ -409,7 +409,11 @@ impl SemanticIndex {
|
|||
) {
|
||||
if let Some(content) = fs.load(&pending_file.absolute_path).await.log_err() {
|
||||
if let Some(documents) = retriever
|
||||
.parse_file(&pending_file.relative_path, &content, pending_file.language)
|
||||
.parse_file_with_template(
|
||||
&pending_file.relative_path,
|
||||
&content,
|
||||
pending_file.language,
|
||||
)
|
||||
.log_err()
|
||||
{
|
||||
log::trace!(
|
||||
|
@ -657,6 +661,8 @@ impl SemanticIndex {
|
|||
})
|
||||
.await?;
|
||||
|
||||
dbg!(&documents);
|
||||
|
||||
let mut tasks = Vec::new();
|
||||
let mut ranges = Vec::new();
|
||||
let weak_project = project.downgrade();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue