8629: Allow pressing | to surround closure arguments in VSCode r=matklad a=Smittyvb

This makes pressing <kbd>|</kbd> while some text is selected surround that text with pipes. This is useful when writing closures. 

In this demo, I press <kbd>|</kbd> to easily surround some text (`predicate`) with pipe characters to create a closure. Before, this would have replaced `predicate` with just `|`.

![](https://user-images.githubusercontent.com/10530973/115778847-3c257e00-a385-11eb-8c80-e0db970747db.gif)

(I am getting failures when I do `cargo test` even on `master` locally (due to #8585 I think), but GH Actions is fine with this)

8657: npm update r=matklad a=kjeremy



Co-authored-by: Smittyvb <me@smitop.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
bors[bot] 2021-04-27 13:22:09 +00:00 committed by GitHub
commit e2b87735cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 486 additions and 404 deletions

View File

@ -23,7 +23,8 @@
["(", ")"],
["<", ">"],
["\"", "\""],
["'", "'"]
["'", "'"],
["|", "|"]
],
"indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",

File diff suppressed because it is too large Load Diff