withastro / language-tools

Language tools for Astro
MIT License
240 stars 45 forks source link

🐛 BUG: Comment shortcut generates `//` within a JSX expression #857

Closed bholmesdev closed 2 months ago

bholmesdev commented 2 months ago

Describe the Bug

When using the comment shortcut in VS Code (cmd + /), the editor generates a // within a JSX expression. We should generate a {/* */} block.

https://github.com/withastro/language-tools/assets/51384119/a7c1718b-23c6-4449-bb4b-f5b43da3b0d6

Steps to Reproduce

  1. Create a JSX expression in a .astro file
  2. Use the comment shortcut cmd + /
Princesseuh commented 2 months ago

Duplicate of https://github.com/withastro/language-tools/issues/713