Make incremental sync opt-out
This commit is contained in:
parent
15de338703
commit
191abf3685
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue