@@ -384,13 +384,11 @@ impl Client {
384 let capabilities = self.capabilities.as_ref().unwrap();
384 let capabilities = self.capabilities.as_ref().unwrap();
386 let sync_capabilities = match capabilities.text_document_sync {
386 let sync_capabilities = match capabilities.text_document_sync {
388− lsp::TextDocumentSyncCapability::Kind(kind)
387+ Some(lsp::TextDocumentSyncCapability::Kind(kind))
389− | lsp::TextDocumentSyncCapability::Options(lsp::TextDocumentSyncOptions {
388+ | Some(lsp::TextDocumentSyncCapability::Options(lsp::TextDocumentSyncOptions {
390− change: Some(kind),
389+ change: Some(kind),
393− ) => kind,
391+ })) => kind,
394 // None | SyncOptions { changes: None }
392 // None | SyncOptions { changes: None }
395 _ => return Ok(()),
393 _ => return Ok(()),
@@ -540,7 +538,7 @@ impl Client {
541 // check if we're able to format
539 // check if we're able to format
542 match capabilities.document_formatting_provider {
540 match capabilities.document_formatting_provider {
543− Some(lsp::OneOf::Left(true) | lsp::OneOf::Right(_)) => (),
541+ Some(lsp::OneOf::Left(true)) | Some(lsp::OneOf::Right(_)) => (),
544 // None | Some(false)
542 // None | Some(false)
545 _ => return Ok(Vec::new()),
543 _ => return Ok(Vec::new()),
@@ -569,7 +567,7 @@ impl Client {
570 // check if we're able to format
568 // check if we're able to format
571 match capabilities.document_range_formatting_provider {
569 match capabilities.document_range_formatting_provider {
572− Some(lsp::OneOf::Left(true) | lsp::OneOf::Right(_)) => (),
570+ Some(lsp::OneOf::Left(true)) | Some(lsp::OneOf::Right(_)) => (),
573 // None | Some(false)
571 // None | Some(false)
574 _ => return Ok(Vec::new()),
572 _ => return Ok(Vec::new()),