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

`alt + b e` don't work as expected in Vue.js #7

Closed QingCT closed 5 years ago

QingCT commented 5 years ago

BEM Helper Version

0.7.0

Steps to reproduce

First I create a new file: index.html

...
  <div class="nav-bar" :class="{'is-hidden':isHidden}">
    //
  </div>
...

Then I press alt + b e to insert element.

What is Expected?

...
  <div class="nav-bar" :class="{'is-hidden':isHidden}">
    <div class="nav-bar__"></div>
  </div>
...

What is actually happening?

...
  <div class="nav-bar" :class="{'is-hidden':isHidden}">
    <div class="{__"></div>
  </div>
...

details

I rolled back to version 0.6.6 or changed the code like this and it works fine.

...
  <div :class="{'is-hidden':hidden}" class="nav-bar">
    //
  </div>
...

Thank you for making such a great plugin!

Box-Of-Hats commented 5 years ago

Thanks for giving such a detailed report. Ill look at this over the weekend

Box-Of-Hats commented 5 years ago

This issue is now fixed and released in version 0.7.1.

Fixed in this commit