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

CSS comment doesnt work #70

Closed artalar closed 4 years ago

artalar commented 4 years ago

CSS comment doesn't work for highlighting css in template literals :

image

Example

const styles = /* CSS */`
  tag {
    display: none;
  }
`
michaelgmcd commented 4 years ago

Hey @artalar, thanks for using vscode-language-babel! In your screenshot, it looks like you're using TypeScript and not JavaScript. You'll know if this plugin is active when it says "Babel JavaScript" in the bottom right-hand corner (currently says "TypeScript React"). Please reopen this issue if it persists in JS.