michaelgmcd / vscode-language-babel

VSCode syntax highlighting for today's JavaScript
https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel
MIT License
131 stars 17 forks source link

Syntax highlighter confused by generic arguments in function calls #57

Closed kevinbarabash closed 4 years ago

kevinbarabash commented 5 years ago

The syntax highlighter gets confused when it runs into a type parameter in a generic function call.

Screen Shot 2019-09-01 at 6 51 58 PM
type D = () => mixed;

const Foo = () => {
  const dispatch = useDispatch();

  return (
    <div>Hello, world!</div>
  )
};

const Bar = () => {
  const dispatch = useDispatch<D>();

  return (
    <div>Hello, world!</div>
  )
};
mgtitimoli commented 4 years ago

Duplicate of #43

kevinbarabash commented 4 years ago

That issue was closed by a PR. Does there need to be a publish before that update will appear in the plugin in VSCode?

michaelgmcd commented 4 years ago

Please check that this was fixed in v0.0.24

kevinbarabash commented 4 years ago

@michaelgmcd it's fixed. Thanks for publishing and thanks for writing this plugin.