Skip to content

[javascript] Leading space is added for new line when code block is preceded by multi-line comment block #114236

@akphi

Description

@akphi
  • VSCode Version: 1.52.1
  • OS Version: Mac OS 11.1 (Big Sur)

Steps to Reproduce:

  1. In a javascript file, add a multi-line comment /** ... */
  2. In the code line right after that comment, place the cursor at the beginning of the line and hit enter
  3. A new line is created with a leading space, why? This doesn't happen when there is no comment prior to the code block.

Hope the attached screen capture helps with reproducing the issue.

problem.with.new.line.mov

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

I have tested with both the Insiders version and https://vscode-web-test-playground.azurewebsites.net/?enter=true

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 issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions