Style Helper: Hover Preview and Autocomplete Fail with Sass //
Comments or Curly Braces in Comments
#1046
Labels
bug
Something isn't working
插件名/Extension:
您的本地环境信息/Your local environment information
您遇到的问题及复现步骤/What are your problems and how to reproduce them
1. When using Sass-style
//
comments, the hover preview does not appear:Code:
2. Also autocomplete doesn't work with
//
Sass-style comments:This instead shows
className={}
, which causes the code to break when selected.3. Hover previews also fail on usage of
{
or}
in a comment:4. Also autocomplete does not work with usage of
{
or}
in a comment:This instead shows
className={}
, which causes the code to break when selected.This however does work with other extensions such as React CSS modules (repo):
Workaround 1: Both hover previews and autocompletion entries start working again when I remove the comment:
Workaround 2: Convert to a CSS-style comment and Remove
{
and}
您期待的正确结果/The right result you're looking forward to
The hover preview and autocomplete features should still work with:
//
comments{
and}
in commentsThe text was updated successfully, but these errors were encountered: