Skip to content

No typescript highlighting for arrow function with line break before first param #37837

@arznaar

Description

@arznaar

Code below compiles correctly to javascript and runs without error.

  • VSCode Version: 1.17.2
  • Typescript version: 2.5.3
  • OS Version: Windows 10 version 1703 build 15063.540
  • Reproduces without extensions: Yes

Steps to Reproduce:

Write first param for the arrow function on the next line. Example:

const goodMethod = (param1: string, param2: string) => {
}

const badMethod = (
    param1: string,
    param2: string
) => {
}

vscode-bug-2017-11-08t17-15-00

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammarjavascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions