generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add JSON Schema for rust(analyzer configuration
Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
7694cba
commit 6edfc14
Showing
4 changed files
with
2,484 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 1 addition & 84 deletions
85
src/main/resources/templates/rust-analyzer/initializationOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1 @@ | ||
{ | ||
"imports": { | ||
"granularity": { | ||
"group": "module" | ||
}, | ||
"prefix": "self" | ||
}, | ||
"cargo": { | ||
"buildScripts": { | ||
"enable": true | ||
} | ||
}, | ||
"completion": { | ||
"autoimport": { | ||
"enable": true | ||
}, | ||
"autoself": { | ||
"enable": true | ||
}, | ||
"callable": { | ||
"snippets": "fill_arguments" | ||
}, | ||
"fullFunctionSignatures": { | ||
"enable": false | ||
}, | ||
"limit": null, | ||
"postfix": { | ||
"enable": true | ||
}, | ||
"privateEditable": { | ||
"enable": false | ||
}, | ||
"snippets": { | ||
"custom": { | ||
"Arc::new": { | ||
"postfix": "arc", | ||
"body": "Arc::new(${receiver})", | ||
"requires": "std::sync::Arc", | ||
"description": "Put the expression into an `Arc`", | ||
"scope": "expr" | ||
}, | ||
"Rc::new": { | ||
"postfix": "rc", | ||
"body": "Rc::new(${receiver})", | ||
"requires": "std::rc::Rc", | ||
"description": "Put the expression into an `Rc`", | ||
"scope": "expr" | ||
}, | ||
"Box::pin": { | ||
"postfix": "pinbox", | ||
"body": "Box::pin(${receiver})", | ||
"requires": "std::boxed::Box", | ||
"description": "Put the expression into a pinned `Box`", | ||
"scope": "expr" | ||
}, | ||
"Ok": { | ||
"postfix": "ok", | ||
"body": "Ok(${receiver})", | ||
"description": "Wrap the expression in a `Result::Ok`", | ||
"scope": "expr" | ||
}, | ||
"Err": { | ||
"postfix": "err", | ||
"body": "Err(${receiver})", | ||
"description": "Wrap the expression in a `Result::Err`", | ||
"scope": "expr" | ||
}, | ||
"Some": { | ||
"postfix": "some", | ||
"body": "Some(${receiver})", | ||
"description": "Wrap the expression in an `Option::Some`", | ||
"scope": "expr" | ||
} | ||
} | ||
} | ||
}, | ||
"termSearch": { | ||
"enable": false, | ||
"fuel": 200 | ||
}, | ||
"procMacro": { | ||
"enable": true | ||
} | ||
} | ||
{} |
Oops, something went wrong.