aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-09-01 18:56:24 +0100
committerGitHub <[email protected]>2020-09-01 18:56:24 +0100
commite9841f0311c0432fc62db93c0681c2744c2bcbd0 (patch)
treeca4a458366b008e705ea122a3294fd48317172cf
parent425479ea0d81913e721d5e337093bc5bf394bceb (diff)
parent321108673dc64fa1746fe5be8865fc3bd5444433 (diff)
Merge #5927
5927: Document VS Code setting needed for on-typing assists r=matklad a=arzg Fixes #5925. Co-authored-by: Aramis Razzaghipour <[email protected]>
-rw-r--r--crates/ide/src/typing.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs
index 899ce5f26..94b91f049 100644
--- a/crates/ide/src/typing.rs
+++ b/crates/ide/src/typing.rs
@@ -39,6 +39,14 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
39// 39//
40// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression 40// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
41// - typing `.` in a chain method call auto-indents 41// - typing `.` in a chain method call auto-indents
42//
43// VS Code::
44//
45// Add the following to `settings.json`:
46// [source,json]
47// ----
48// "editor.formatOnType": true,
49// ----
42pub(crate) fn on_char_typed( 50pub(crate) fn on_char_typed(
43 db: &RootDatabase, 51 db: &RootDatabase,
44 position: FilePosition, 52 position: FilePosition,