Skip to content

definition returns two location instead of one #391

Closed
@kkharji

Description

@kkharji

Describe the bug
A clear and concise description of what the bug is.

local on_merge = function (spec, succ, _)
  if succ then
    return vim.schedule_wrap(function(j)
      local out = table.concat(j:result(), "\n")
      log.succ(fmt("`%s` has been updated successfully. %s: ", spec.name, out))
    end)
  else
    return vim.schedule_wrap(function(j)
      local out = table.concat(j:stderr_result(), "\n")
      print(fmt("`%s` can't be merged, error %s", spec.name, out))
    end)
  end
end

on_merg|e(...)

jumping to definition of on_merge result in two suggestions :

Expected behavior
A clear and concise description of what you expected to happen.
One location instead of two

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions