Unnamed repository; edit this file 'description' to name the repository.
Merge #11433
11433: minor: Add scary warning to `onEnter` r=lnicola a=lnicola Closes #11432 Co-authored-by: LaurenČ›iu Nicola <[email protected]>
bors[bot] 2022-02-28
parent 415be8b · parent 6bf9769 · commit 342c3c4
-rw-r--r--crates/ide/src/typing/on_enter.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/typing/on_enter.rs b/crates/ide/src/typing/on_enter.rs
index 88d9777f1d..48c1713270 100644
--- a/crates/ide/src/typing/on_enter.rs
+++ b/crates/ide/src/typing/on_enter.rs
@@ -24,6 +24,10 @@ use text_edit::TextEdit;
//
// 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`: