From cfc52adc65327190b5027de19a1a6d96dcf504ab Mon Sep 17 00:00:00 2001 From: Ryo Yoshida Date: Wed, 20 Jul 2022 19:10:52 +0900 Subject: [PATCH] Add comments --- crates/ide-completion/src/completions/postfix.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ide-completion/src/completions/postfix.rs b/crates/ide-completion/src/completions/postfix.rs index 762d7cddb97c..b09f4634c651 100644 --- a/crates/ide-completion/src/completions/postfix.rs +++ b/crates/ide-completion/src/completions/postfix.rs @@ -529,6 +529,11 @@ fn main() { ControlFlow::Break(42) } "#, ); + // The receiver texts should be escaped, see comments in `get_receiver_text()` + // for detail. + // + // Note that the last argument is what *lsp clients would see* rather than + // what users would see. Unescaping happens thereafter. check_edit_with_config( config.clone(), "break",