update treesitter parsing to accomodate for collapsed nested functions

Co-authored-by: maxbrunsfeld <max@zed.dev>
This commit is contained in:
KCaverly 2023-07-19 15:47:05 -04:00
parent 0e071919a0
commit 9809ec3d70
9 changed files with 773 additions and 584 deletions

View file

@ -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();