Support formatting in fake LSP capabilities
This commit is contained in:
parent
46da80d726
commit
d8ef3a5d61
2 changed files with 10 additions and 2 deletions
|
@ -524,6 +524,8 @@ impl LanguageServer {
|
|||
ServerCapabilities {
|
||||
document_highlight_provider: Some(OneOf::Left(true)),
|
||||
code_action_provider: Some(CodeActionProviderCapability::Simple(true)),
|
||||
document_formatting_provider: Some(OneOf::Left(true)),
|
||||
document_range_formatting_provider: Some(OneOf::Left(true)),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue