Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect indentation for TypeScript opening curly brace #236138

Open
KyleKolander opened this issue Dec 14, 2024 · 0 comments
Open

Incorrect indentation for TypeScript opening curly brace #236138

KyleKolander opened this issue Dec 14, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues

Comments

@KyleKolander
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.96.0 and 1.97-0-insider
  • OS Version: Windows 11 Pro 24H2 26100.2605

Steps to Reproduce:

In a TypeScript file, put your cursor immediately before an opening (left) curly brace and press Enter. The curly brace will be indented, which is incorrect behavior.

Image

Image

Image

This bug is similar to #216737 but not the same; that issue has been fixed, as you can see below:

Image

@rebornix rebornix assigned aiday-mar and unassigned rebornix Dec 16, 2024
@rebornix rebornix added the editor-autoindent Editor auto indentation issues label Dec 16, 2024
@aiday-mar aiday-mar added the bug Issue identified by VS Code Team member as probable bug label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues
Projects
None yet
Development

No branches or pull requests

3 participants