Skip to content

Javsascript arrays don't collapse properly #79142

@lgark

Description

@lgark

When using JavaScript or HTML Language Mode, collapsing a javascript array does not work as expected.

Initial state:
image

When collapsing, notice the bottom bracket disappears:
image

When copying/pasting the collapsed block, only the top line gets pasted:
image

If I use Plain Text or JSON Language Mode, everything works as expected:
image

After pasting, the entire block pastes as I would expect:
image

Additional notes:

  • In JavaScript mode, object collapse functionality works as expected--it seems that only arrays have this issue.
  • VSCode version 1.37.0
  • OS: Windows 10.0.17134
  • Extensions installed:
    • GitLens -- Git supercharged 9.9.3

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-foldingEditor code folding issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions