refactor(lsp): simplify client tracking

- Remove:
    - uninitialized_clients
    - active_clients
    - all_buffer_active_clients
- Add:
    - all_clients

- Use `lsp.get_clients()` to get buffer clients.
This commit is contained in:
Lewis Russell
2024-03-21 15:15:20 +00:00
committed by Lewis Russell
parent 31a15fb2a1
commit 3f238b39cf
5 changed files with 164 additions and 198 deletions

View File

@@ -761,7 +761,7 @@ function Client:_request_sync(method, params, timeout_ms, bufnr)
return request_result
end
--- @private
--- @package
--- Sends a notification to an LSP server.
---
--- @param method string LSP method name.