mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-27 16:07:46 +00:00
Merge pull request #21253 from tris203/lsp_didSave
fix(lsp): handle dynamic registration for didSave
This commit is contained in:
commit
4576663053
@ -37,7 +37,11 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
|
||||
change: Some(TextDocumentSyncKind::INCREMENTAL),
|
||||
will_save: None,
|
||||
will_save_wait_until: None,
|
||||
save: Some(SaveOptions::default().into()),
|
||||
save: if config.caps().did_save_text_document_dynamic_registration() {
|
||||
None
|
||||
} else {
|
||||
Some(SaveOptions::default().into())
|
||||
},
|
||||
})),
|
||||
hover_provider: Some(HoverProviderCapability::Simple(true)),
|
||||
completion_provider: Some(CompletionOptions {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user