Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript file highlight breaks on arrow functions that are multiline #751

Closed
RyuuGan opened this issue Jun 18, 2019 · 1 comment
Closed

Comments

@RyuuGan
Copy link

RyuuGan commented Jun 18, 2019

  • VSCode Version: 1.35.1 - c7d83e57cd18f18026a8162d042843bda1bcf21f - x64
  • OS Version: Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64

Steps to Reproduce:

In typescript file next code breaks the highlights for the rest of the file.

export const o: any = {
  shortValuationPdfUuid: (
  ): Array<Map<string, number>> => {
    return [];
  },
  
}

It works properly if the definition of the function is one line like shortValuationPdfUuid: (): Array<Map<string, number>> or it is like an ordinary function like

export const o: any = {
  shortValuationPdfUuid(
  ): Array<Map<string, number>> {
    return [];
  },
}

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

@RyuuGan RyuuGan changed the title Typescript file highlight arrow functions that are multiline Typescript file highlight breaks on arrow functions that are multiline Jun 18, 2019
@gund
Copy link

gund commented Jun 18, 2019

Example above breaks even in Github's own highlighter =)

@mjbvz mjbvz transferred this issue from microsoft/vscode Jun 18, 2019
@mjbvz mjbvz removed their assignment Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants