-
Notifications
You must be signed in to change notification settings - Fork 37k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issuesEditor auto indentation issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersverifiedVerification succeededVerification succeeded
Milestone
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.1
- OS Version: Darwin arm64 22.6.0
Steps to Reproduce:
- Ensure the Editor: Auto Indent setting is set to "full"
- Add the following to a
.jsfile:
console.log(
"bar");- Place the caret after between the closing quote and the closing parenthesis.
- Press enter
Expected: Autoindent should decrease the indentation of the new line, resulting in this:
console.log(
"bar"
);Actual: Autoindent doesn't do anything, resulting in this:
console.log(
"bar"
);I tracked this down to a missing closing paren in the decreaseIndentPattern in the javascript and typescript language configurations. You can see there's an opening paren in increaseIndentPattern but no closing paren in decreaseIndentPattern.
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issuesEditor auto indentation issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersverifiedVerification succeededVerification succeeded