Skip to content

Multi-line function arguments can not be syntax highlighted #564

@aziz

Description

@aziz

TS and JS Grammar Extension version: 0.0.26 / latest

Code

// Please include a code snippet that demonstrates the issue
const documentFilter = (
  searchText: string,
  documents: IKeystoneDocument[]
): IKeystoneDocument[] => {
}

function arguments in the example above cannot be highlighted. putting only one of them in the first line fixes the issue, something like this works:

const documentFilter = (searchText: string,
  documents: IKeystoneDocument[]
): IKeystoneDocument[] => {
}

We can not do it since the formatting is done using prettier automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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