Revert "runtime: Add vim.lsp.get_client_by_name" #11623

reverts 680693e263 #11603
This commit is contained in:
Ashkan Kiani
2019-12-29 00:05:32 -08:00
committed by Justin M. Keyes
parent ddffd31737
commit 34a59242a0
3 changed files with 2 additions and 22 deletions

View File

@@ -697,16 +697,6 @@ function lsp.get_client_by_id(client_id)
return active_clients[client_id]
end
-- Look up an active client by its name, returns nil if it is not yet initialized
-- or is not a valid name.
-- @param client_name string the client name.
function lsp.get_client_by_name(client_name)
for _, client in pairs(active_clients) do
if client.name == client_name then return client end
end
return nil
end
-- Stop a client by its id, optionally with force.
-- You can also use the `stop()` function on a client if you already have
-- access to it.