minor improvement to get capability
This commit is contained in:
parent
afabbc9844
commit
ca0d8413f9
1 changed files with 1 additions and 1 deletions
|
@ -1236,7 +1236,7 @@ impl Client {
|
|||
text_document: lsp::TextDocumentIdentifier,
|
||||
previous_result_id: Option<String>,
|
||||
) -> Option<impl Future<Output = Result<Value>>> {
|
||||
let capabilities = self.capabilities.get().unwrap();
|
||||
let capabilities = self.capabilities();
|
||||
|
||||
// Return early if the server does not support pull diagnostic.
|
||||
let identifier = match capabilities.diagnostic_provider.as_ref()? {
|
||||
|
|
Loading…
Add table
Reference in a new issue