mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +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
@ -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…
Reference in New Issue
Block a user