Skip to content

Commit cfc52ad

Browse files
committed
Add comments
1 parent 80cc0ef commit cfc52ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/ide-completion/src/completions/postfix.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ fn main() { ControlFlow::Break(42) }
529529
"#,
530530
);
531531

532+
// The receiver texts should be escaped, see comments in `get_receiver_text()`
533+
// for detail.
534+
//
535+
// Note that the last argument is what *lsp clients would see* rather than
536+
// what users would see. Unescaping happens thereafter.
532537
check_edit_with_config(
533538
config.clone(),
534539
"break",

0 commit comments

Comments
 (0)