Merge #7961
7961: add user docs for ssr assist r=JoshMcguigan a=JoshMcguigan @matklad This is a small follow up on #7874, adding user docs for the SSR assist functionality. Since most other assists aren't handled this way I wasn't sure exactly how we wanted to document this, so feel free to suggest alternatives. Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
This commit is contained in:
commit
f0e78f2ed6
@ -57,6 +57,15 @@
|
|||||||
//
|
//
|
||||||
// | VS Code | **Rust Analyzer: Structural Search Replace**
|
// | VS Code | **Rust Analyzer: Structural Search Replace**
|
||||||
// |===
|
// |===
|
||||||
|
//
|
||||||
|
// Also available as an assist, by writing a comment containing the structural
|
||||||
|
// search and replace rule. You will only see the assist if the comment can
|
||||||
|
// be parsed as a valid structural search and replace rule.
|
||||||
|
//
|
||||||
|
// ```rust
|
||||||
|
// // Place the cursor on the line below to see the assist 💡.
|
||||||
|
// // foo($a, $b) ==>> ($a).foo($b)
|
||||||
|
// ```
|
||||||
|
|
||||||
mod from_comment;
|
mod from_comment;
|
||||||
mod matching;
|
mod matching;
|
||||||
|
Loading…
Reference in New Issue
Block a user