apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io
https://appworks.site/
MIT License
992 stars 180 forks source link

less文件中如果对样式有注释的话,提示后自动补全会将注释信息同时添加到style.['xxx']中 #1049

Open waveheart opened 1 year ago

waveheart commented 1 year ago

插件名/Extension: React-Style-Helper

您的本地环境信息/Your local environment information

您遇到的问题及复现步骤/What are your problems and how to reproduce them

  1. 新建index.less, 添加两个类名, 一个有注释,一个没有注释

image

  1. 新建index.tsx, 使用样式

image

  1. 发现引用无注释的样式,自动补全正常

image

  1. 如果使用带注释的样式,补全会带出注释信息

image

您期待的正确结果/The right result you're looking forward to

补全带注释的样式类的时候,不应该带出注释信息