Skip to content

Commit

Permalink
fix(provider): restore path completion source
Browse files Browse the repository at this point in the history
Regression introduced in recent refactoring (Saghen#465) where the path
provider was not returning any results.

Ensures that all successfully completed stat operations are returned.
  • Loading branch information
soifou committed Dec 11, 2024
1 parent af7c5d9 commit f06a5db
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lua/blink/cmp/sources/path/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ function fs.fs_stat_all(cwd, entries)
end)
)
end
return async.task.await_all(tasks):map(function(tasks_results)
local resolved_entries = {}
for _, entry in ipairs(tasks_results) do
if entry.status == async.STATUS.COMPLETED then table.insert(resolved_entries, entry.result) end
end
return resolved_entries
end)
return async.task.await_all(tasks)
end

--- @param path string
Expand Down

0 comments on commit f06a5db

Please sign in to comment.