You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I observer the following behaviour:
If I hit enter after list.items, it does not add an extra indent.
If I hit enter after the for_each, it does not remove the extra indent, so I have to press backspace
Note that I use vim mode, but using VSCode's indent lines feature will cause a similar problem as well, so I don't think it has anything to do with vim.
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command) 0f8c96c 2022-01-10 stable
rustc version: (eg. output of rustc -V)
1.57.0 (f1edd0429 2021-11-29)
The text was updated successfully, but these errors were encountered:
#13975 fixes the case of enter after for_each, but the enter after list.items case is still present. While typing a . after does adjust the indent, it would still be nice to have that indent there in the first place.
Would need to add a new onEnter rule in here, with the hard part being trying to figure out the right regex to use that minimizes the false positives
When typing in this block of code,
I observer the following behaviour:
If I hit enter after
list.items
, it does not add an extra indent.If I hit enter after the
for_each
, it does not remove the extra indent, so I have to press backspaceNote that I use vim mode, but using VSCode's indent lines feature will cause a similar problem as well, so I don't think it has anything to do with vim.
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
0f8c96c 2022-01-10 stable
rustc version: (eg. output of
rustc -V
)1.57.0 (f1edd0429 2021-11-29)
The text was updated successfully, but these errors were encountered: