ldelossa / litee.nvim

A framework for building Neovim plugins
409 stars 14 forks source link

multi_client_request failed to skip unsupported method #100

Open guangxu-li opened 2 years ago

guangxu-li commented 2 years ago
function M.multi_client_request(clients, method, params, handler, bufnr)
    for _, client in ipairs(clients) do
        if not client.supports_method(method) then
            goto continue
        end
        client.request(method, params, handler, bufnr)
        ::continue::
    end
end

https://github.com/ldelossa/litee-calltree.nvim/issues/16#issuecomment-1166326694 In the above litee-calltree issue ticket, it seems that the function failed to skip unsupported LSP request