diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/caps.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 { | |||
17 | ServerCapabilities { | 17 | ServerCapabilities { |
18 | text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions { | 18 | text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions { |
19 | open_close: Some(true), | 19 | open_close: Some(true), |
20 | change: Some(if env::var("RA_PROFILE").is_ok() { | 20 | change: Some(if env::var("RA_NO_INCREMENTAL_SYNC").is_ok() { |
21 | TextDocumentSyncKind::Incremental | ||
22 | } else { | ||
23 | TextDocumentSyncKind::Full | 21 | TextDocumentSyncKind::Full |
22 | } else { | ||
23 | TextDocumentSyncKind::Incremental | ||
24 | }), | 24 | }), |
25 | will_save: None, | 25 | will_save: None, |
26 | will_save_wait_until: None, | 26 | will_save_wait_until: None, |