sublime-jsdocs icon indicating copy to clipboard operation
sublime-jsdocs copied to clipboard

es6 methods not working

Open matthiasg opened this issue 9 years ago • 3 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){
  }

matthiasg avatar Oct 02 '15 16:10 matthiasg

This is working for me. out-1

What is the syntax highlighting settings for that file?

spadgos avatar Oct 09 '15 01:10 spadgos

+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?

CaitlinWeb avatar Oct 06 '16 20:10 CaitlinWeb

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

johny-gog avatar Apr 05 '17 11:04 johny-gog