about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2022-02-08 08:34:24 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2022-02-28 12:15:15 +0200
commit6bf97692ae88b5c845aa35ba349e2e3c52bdd09d (patch)
tree668c417c9e7248fefb9a81cf977a39b3666e5400
parentba330548023607717295f0dfd61b72eda41aa9dd (diff)
downloadrust-6bf97692ae88b5c845aa35ba349e2e3c52bdd09d.tar.gz
rust-6bf97692ae88b5c845aa35ba349e2e3c52bdd09d.zip
Add scary warning to onEnter
-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 88d9777f1dc..48c1713270b 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`: