spadgos / sublime-jsdocs

Simplifies writing DocBlock comments in Javascript, PHP, CoffeeScript, Actionscript, C & C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

es6 methods not working

matthiasg opened this issue · comments

i see that #283 was supposed to have closed this but this is still not working for me at least ..

class Foo {
  constructor(){
  }
  /** <TAB HERE> 
  test(a,b){
  }

creates:

class Foo {
  constructor(){
  }
  /**
   * @param  {[type]}
   * @param  {[type]}
   * @return {[type]}
   */
  test(a,b){
  }

This is working for me.
out-1

What is the syntax highlighting settings for that file?

+1 since I also saw this issue. It was generating:

/**
 *  @method test
 *  @param  {[type]}
 *  @return {[type]}
 */

But then I saw @spadgos's formatting is Javascript (Babel) so I enabled that and then it worked fine. Try it, @matthiasg?

Same for me - doesn't work for JavaScript Next, works for JavaScript (Babel).