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:
bors 2023-07-07 09:06:56 +00:00
commit 09f666b51b

View File

@ -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 },
},
{