vscode-styled-components icon indicating copy to clipboard operation
vscode-styled-components copied to clipboard

Highlighting breaks when using an implicit return before the TemplateStringsArray

Open christo8989 opened this issue 3 years ago • 0 comments

  • OS: Darwin x64 21.6.0
  • VSCode Version: 1.72.2
  • Extension Version: 1.6.6

Additional context Add any other context about the problem here.

Steps to Reproduce:

Given

export const foo = (fn: Function) => (name: TemplateStringsArray) => {

}

// Use foo here...

interface FooBar {

}

Breaks

foo(() => ({

}))``

image

Fixes

foo(() => {
  return { }
})``

image

christo8989 avatar Oct 31 '22 22:10 christo8989