mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
insert space after ->
This commit is contained in:
parent
ea948e9fbb
commit
53e3bee0cf
3 changed files with 235 additions and 228 deletions
|
@ -38,7 +38,7 @@ pub fn server_capabilities() -> ServerCapabilities {
|
|||
document_range_formatting_provider: None,
|
||||
document_on_type_formatting_provider: Some(DocumentOnTypeFormattingOptions {
|
||||
first_trigger_character: "=".to_string(),
|
||||
more_trigger_character: Some(vec![".".to_string()]),
|
||||
more_trigger_character: Some(vec![".".to_string(), ">".to_string()]),
|
||||
}),
|
||||
selection_range_provider: Some(GenericCapability::default()),
|
||||
folding_range_provider: Some(FoldingRangeProviderCapability::Simple(true)),
|
||||
|
|
|
@ -132,6 +132,7 @@ pub fn handle_on_enter(
|
|||
}
|
||||
}
|
||||
|
||||
// Don't forget to add new trigger characters to `ServerCapabilities` in `caps.rs`.
|
||||
pub fn handle_on_type_formatting(
|
||||
world: WorldSnapshot,
|
||||
params: req::DocumentOnTypeFormattingParams,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue