Skip to content

Commit

Permalink
fix: fetch_deps enqueueing callback multiple times (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
saecki authored Jan 10, 2024
1 parent 6d779c7 commit 330d804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/crates/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ local function enqueue_deps_job(name, version, callbacks)
for _, j in ipairs(M.queued_jobs) do
if j.kind == "deps" and j.name == name and j.version == version then
vim.list_extend(j.deps_callbacks, callbacks)
return
end
end

Expand Down
1 change: 1 addition & 0 deletions teal/crates/api.tl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ local function enqueue_deps_job(name: string, version: string, callbacks: {funct
for _,j in ipairs(M.queued_jobs) do
if j.kind == "deps" and j.name == name and j.version == version then
vim.list_extend(j.deps_callbacks, callbacks)
return
end
end

Expand Down

0 comments on commit 330d804

Please sign in to comment.