mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 00:47:18 +00:00
fix: Indent after pressing enter on a blank line
This commit is contained in:
parent
924d277f32
commit
ebaf8c8135
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ export class Config {
|
||||||
let onEnterRules: vscode.OnEnterRule[] = [
|
let onEnterRules: vscode.OnEnterRule[] = [
|
||||||
{
|
{
|
||||||
// Carry indentation from the previous line
|
// Carry indentation from the previous line
|
||||||
beforeText: /^\s*$/,
|
// if it's only whitespace
|
||||||
|
beforeText: /^\s+$/,
|
||||||
action: { indentAction: vscode.IndentAction.None },
|
action: { indentAction: vscode.IndentAction.None },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue