vendredi 25 septembre 2020

Visual Studio Code refactors the decorators

I'm new to using Visual Studio Code. I have an EmberJS project and there is the following code:

  @on('didInsertElement')
  _initialize() {
    // Code
  },

For some reason, the VS refactors it to be:

  @on('didInsertElement')
_initialize() {
  // Code
},

Meaning it removes the spaces under @on('didInsertElement'). The file ends with *.js.es6. I installed vscode-ember in the VS market but it still didn't solve the problem. How can I do it?




Aucun commentaire:

Enregistrer un commentaire