File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ fn handle_request(
174174fn main_loop ( connection : Connection , config_resolver : & mut ConfigResolver ) -> anyhow:: Result < ( ) > {
175175 let initialize_result = InitializeResult {
176176 capabilities : ServerCapabilities {
177+ document_range_formatting_provider : Some ( OneOf :: Left ( true ) ) ,
177178 document_formatting_provider : Some ( OneOf :: Left ( true ) ) ,
178179 text_document_sync : Some ( TextDocumentSyncCapability :: Kind (
179180 TextDocumentSyncKind :: INCREMENTAL ,
@@ -289,6 +290,7 @@ mod tests {
289290 && result
290291 == serde_json:: json!( {
291292 "capabilities" : ServerCapabilities {
293+ document_range_formatting_provider: Some ( OneOf :: Left ( true ) ) ,
292294 document_formatting_provider: Some ( OneOf :: Left ( true ) ) ,
293295 text_document_sync: Some ( TextDocumentSyncCapability :: Kind (
294296 TextDocumentSyncKind :: INCREMENTAL ,
You can’t perform that action at this time.
0 commit comments