aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_ssr/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-10 17:06:11 +0000
committerGitHub <[email protected]>2021-03-10 17:06:11 +0000
commitf0e78f2ed6bda5d48caabe35efbb09cb2f3ff5a4 (patch)
tree142afc1b56d1ae888f41c897fb6c6b1de73a6414 /crates/ide_ssr/src
parentb35559a2460e7f0b2b79a7029db0c5d4e0acdb44 (diff)
parent40587b08a0e0513d06eeffa9eeee9a78ac23100d (diff)
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 <[email protected]>
Diffstat (limited to 'crates/ide_ssr/src')
-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 e72c611a3..00585f448 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 from_comment; 70mod from_comment;
62mod matching; 71mod matching;