diff options
| author | bors <bors@rust-lang.org> | 2023-07-07 09:06:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-07 09:06:56 +0000 |
| commit | 09f666b51b8461453d317177841ebbbfbf929986 (patch) | |
| tree | 4cd38b3c31ba869badd6679167c46306e20d661d | |
| parent | 927f94161e7a9e90f90aeb2d61e8be6bf9be4855 (diff) | |
| parent | ebaf8c8135dfc0d655fe26fe38b5282df39fff26 (diff) | |
| download | rust-09f666b51b8461453d317177841ebbbfbf929986.tar.gz rust-09f666b51b8461453d317177841ebbbfbf929986.zip | |
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).
| -rw-r--r-- | editors/code/src/config.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index deea958f8da..7f4efebb2af 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -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 }, }, { |
