镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

definition returns two location instead of one #391

Closed

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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