Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

definition returns two location instead of one #391

Closed
kkharji opened this issue Feb 10, 2021 · 0 comments
Closed

definition returns two location instead of one #391

kkharji opened this issue Feb 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@kkharji
Copy link

kkharji commented Feb 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants