microsoft / typescript-styled-plugin

TypeScript server plugin that adds intellisense to styled component css strings
MIT License
839 stars 58 forks source link

No syntax highlighting when styled receives an anonymous arrow function as a parameter #103

Closed n370 closed 5 years ago

n370 commented 5 years ago
// Works fine!
const foo = props => <input type="checkbox" {...props} />;

const CheckboxStyled = styled(foo)`
  cursor: pointer;
`;
// Breaks!

const CheckboxStyled = styled(props => <input type="checkbox" {...props} />)`
  cursor: pointer;
`;
mjbvz commented 5 years ago

This repo/library does not provide syntax highlighting. Please file this against https://github.com/styled-components/vscode-styled-components