diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-27 14:22:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-27 14:22:09 +0100 |
commit | e2b87735cc4b54ca530e7a99070da585d480b1c3 (patch) | |
tree | 8e58c3165a70279e545f5131de164eda059b179d /crates/paths | |
parent | 86b50849179f710dad5b0c48535d064425863247 (diff) | |
parent | c38e3e9ee991078163abf88f19a1d1438ba91ee3 (diff) | |
parent | 1c927650f76ef3207635922a73016685f9aa8186 (diff) |
Merge #8629 #8657
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 <[email protected]>
Co-authored-by: Jeremy Kolb <[email protected]>