From 191abf368563d6229c5e6025f7cde2e7d4c22ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 4 May 2020 19:54:23 +0300 Subject: Make incremental sync opt-out --- crates/rust-analyzer/src/caps.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index 680415cac..110c9a442 100644 --- a/crates/rust-analyzer/src/caps.rs +++ b/crates/rust-analyzer/src/caps.rs @@ -17,10 +17,10 @@ pub fn server_capabilities() -> ServerCapabilities { ServerCapabilities { text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions { open_close: Some(true), - change: Some(if env::var("RA_PROFILE").is_ok() { - TextDocumentSyncKind::Incremental - } else { + change: Some(if env::var("RA_NO_INCREMENTAL_SYNC").is_ok() { TextDocumentSyncKind::Full + } else { + TextDocumentSyncKind::Incremental }), will_save: None, will_save_wait_until: None, -- cgit v1.2.3