5927: Document VS Code setting needed for on-typing assists r=matklad a=arzg

Fixes #5925.

Co-authored-by: Aramis Razzaghipour <aramisnoah@gmail.com>
This commit is contained in:
bors[bot] 2020-09-01 17:56:24 +00:00 committed by GitHub
commit e9841f0311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,14 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
//
// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
// - typing `.` in a chain method call auto-indents
//
// VS Code::
//
// Add the following to `settings.json`:
// [source,json]
// ----
// "editor.formatOnType": true,
// ----
pub(crate) fn on_char_typed(
db: &RootDatabase,
position: FilePosition,