Formatter messes up indentation (even its own) #234401
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-autoindent
Editor auto indentation issues
javascript
JavaScript support issues
typescript
Typescript support issues
Does this issue occur when all extensions are disabled?: Yes/No
yes
Commit: f1a4fb1
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0
Steps to Reproduce:
if
statement and right-click, then say "format selection." Note that the resulting indentation is correct.if
statement and press Return. Note incorrect indentation.if
statement, and then cut it.Screen grab attached.https://github.com/user-attachments/assets/b52f28cd-4163-4921-97c0-40e8a88ab7a3
I'm not using any third-party formatter. Also, the JavaScript/TypeScript formatting options are being ignored. Screen shot of those options attached too.
This page won't let me attach the source file (fix that), so I'll paste its contents here:
The text was updated successfully, but these errors were encountered: