aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ide/src/completion/complete_postfix.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/completion/complete_postfix.rs b/crates/ide/src/completion/complete_postfix.rs
index 29d38661b..26a5af5b9 100644
--- a/crates/ide/src/completion/complete_postfix.rs
+++ b/crates/ide/src/completion/complete_postfix.rs
@@ -175,6 +175,9 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
175 ) 175 )
176 .add_to(acc); 176 .add_to(acc);
177 177
178 postfix_snippet(ctx, cap, &dot_receiver, "ok", "Ok(expr)", &format!("Ok({})", receiver_text))
179 .add_to(acc);
180
178 postfix_snippet( 181 postfix_snippet(
179 ctx, 182 ctx,
180 cap, 183 cap,
@@ -277,6 +280,7 @@ fn main() {
277 sn if if expr {} 280 sn if if expr {}
278 sn match match expr {} 281 sn match match expr {}
279 sn not !expr 282 sn not !expr
283 sn ok Ok(expr)
280 sn ref &expr 284 sn ref &expr
281 sn refm &mut expr 285 sn refm &mut expr
282 sn while while expr {} 286 sn while while expr {}
@@ -299,6 +303,7 @@ fn main() {
299 sn dbg dbg!(expr) 303 sn dbg dbg!(expr)
300 sn dbgr dbg!(&expr) 304 sn dbgr dbg!(&expr)
301 sn match match expr {} 305 sn match match expr {}
306 sn ok Ok(expr)
302 sn ref &expr 307 sn ref &expr
303 sn refm &mut expr 308 sn refm &mut expr
304 "#]], 309 "#]],