mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Auto merge of #15227 - DropDemBits:indent-on-blank-line, r=lnicola
fix: Indent after pressing enter on a blank line Regressed after https://github.com/rust-lang/rust-analyzer/pull/13975 (whoops).
This commit is contained in:
commit
09f666b51b
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ export class Config {
|
|||
let onEnterRules: vscode.OnEnterRule[] = [
|
||||
{
|
||||
// Carry indentation from the previous line
|
||||
beforeText: /^\s*$/,
|
||||
// if it's only whitespace
|
||||
beforeText: /^\s+$/,
|
||||
action: { indentAction: vscode.IndentAction.None },
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue