Skip to content

Javascript: code blocks auto indent improperly when apostrophes/quotation marks are present #86176

@ariffjeff

Description

@ariffjeff

Issue Type: Bug

When apostrophes/quotation marks are present on the first line of an if statement or for loop, and the VS Code command "Reindent Lines" is done, code within the statement or loop is indented incorrectly (no indentation).

if() {
   x = 4 
} 

... turns into the following after "Reindent Lines" ...

if() { // '
x = 4 
} 

VS Code version: Code 1.40.2 (f359dd6, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.18362

Extensions (1)
Extension Author (truncated) Version
extendscript-debug Ado 1.1.2

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issueshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuestypescriptTypescript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions