From: Josh Mcguigan Date: Wed, 10 Mar 2021 16:11:16 +0000 (-0800) Subject: add user docs for ssr assist X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=40587b08a0e0513d06eeffa9eeee9a78ac23100d;p=rust.git add user docs for ssr assist --- diff --git a/crates/ide_ssr/src/lib.rs b/crates/ide_ssr/src/lib.rs index a97fc8bcaca..b894d326e3a 100644 --- a/crates/ide_ssr/src/lib.rs +++ b/crates/ide_ssr/src/lib.rs @@ -57,6 +57,15 @@ // // | 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;