aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJosh Mcguigan <[email protected]>2021-03-10 16:11:16 +0000
committerJosh Mcguigan <[email protected]>2021-03-10 17:04:47 +0000
commit40587b08a0e0513d06eeffa9eeee9a78ac23100d (patch)
tree65d5002488758436adc58ab4a96360b2cd438547 /crates
parenta9b1e5cde1cc6e470be60cf2c230b99a62c2d2c3 (diff)
add user docs for ssr assist
Diffstat (limited to 'crates')
-rw-r--r--crates/ide_ssr/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ide_ssr/src/lib.rs b/crates/ide_ssr/src/lib.rs
index a97fc8bca..b894d326e 100644
--- a/crates/ide_ssr/src/lib.rs
+++ b/crates/ide_ssr/src/lib.rs
@@ -57,6 +57,15 @@
57// 57//
58// | VS Code | **Rust Analyzer: Structural Search Replace** 58// | VS Code | **Rust Analyzer: Structural Search Replace**
59// |=== 59// |===
60//
61// Also available as an assist, by writing a comment containing the structural
62// search and replace rule. You will only see the assist if the comment can
63// be parsed as a valid structural search and replace rule.
64//
65// ```rust
66// // Place the cursor on the line below to see the assist 💡.
67// // foo($a, $b) ==>> ($a).foo($b)
68// ```
60 69
61mod matching; 70mod matching;
62mod nester; 71mod nester;