Skip to content

Lambda function with line break before parentheses produces wrong syntax highlight on the parameters #1053

Description

@Quicksilver0218

JavaScript and TypeScript Nightly version: 5.9.20250330

Code

const clearSet =
(
  set: Set<string>
) => {}

Result

Image

It is normal without the line break.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions