]> git.lizzy.rs Git - rust.git/commitdiff
add user docs for ssr assist
authorJosh Mcguigan <joshmcg88@gmail.com>
Wed, 10 Mar 2021 16:11:16 +0000 (08:11 -0800)
committerJosh Mcguigan <joshmcg88@gmail.com>
Wed, 10 Mar 2021 17:04:47 +0000 (09:04 -0800)
crates/ide_ssr/src/lib.rs

index a97fc8bcacab263454fc23bfa74ce5bbc6c88c09..b894d326e3aab91fc2807e0b08fe29a650ed7110 100644 (file)
 //
 // | 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 matching;
 mod nester;