]> git.lizzy.rs Git - rust.git/commitdiff
Merge #11433
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 28 Feb 2022 10:15:44 +0000 (10:15 +0000)
committerGitHub <noreply@github.com>
Mon, 28 Feb 2022 10:15:44 +0000 (10:15 +0000)
11433: minor: Add scary warning to `onEnter` r=lnicola a=lnicola

Closes #11432

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
crates/ide/src/typing/on_enter.rs

index 88d9777f1dc6a99e3e8b9c82583f814dfeae90f1..48c1713270b6c5c46c42deb7553ca98ac66384d3 100644 (file)
 //
 // This action needs to be assigned to shortcut explicitly.
 //
+// Note that, depending on the other installed extensions, this feature can visibly slow down typing.
+// Similarly, if rust-analyzer crashes or stops responding, `Enter` might not work.
+// In that case, you can still press `Shift-Enter` to insert a newline.
+//
 // VS Code::
 //
 // Add the following to `keybindings.json`: