Box-Of-Hats / Bem-VSCode-Extension

A VSCode extension for helping with inserting BEM (Block-Element-Modifier) classes.
BSD 3-Clause "New" or "Revised" License
29 stars 5 forks source link

class="undefined__" is inserted when there is no elements to inherit from #57

Open Ilanaya opened 2 years ago

Ilanaya commented 2 years ago
image

It might be the desired behavior, but I'd propose to insert either something more meaningful, e.g. current file name in user specified case (inbemHelper.classNameCase), or even empty class name. Moreover, in current version you need twoctrl + backspace` presses to get rid of the inserted class - it would be definitely better to select the whole class name in this case. @Box-Of-Hats WDYT?