Closed codeinabox closed 7 years ago
@codeinabox ah, thx for reporting issue.
I'll fix it later, stay tuned 😊
@codeinabox
Could you try fix/default_params
branch?
Still getting the same output
fmmm, strange.
function defaultParams(arg, arg1 = 'foo', arg2 = 100) {}
line:Jsdoc
/**
* defaultParams
*
* @param {string} arg
* @param {string} [arg1='foo']
* @param {number} [arg2=100]
* @returns {undefined}
*/
Could you show me your jsdoc.vim settings?
I tried that but get
/**
* defaultParams
*
* @param {string} arg
* @param {string} arg1='foo'
* @param {string} arg2=100
*/
function defaultParams(arg, arg1 = 'foo', arg2 = 100) {}
Settings are
Plugin 'heavenshell/vim-jsdoc'
" vim-jsdoc {{{
let g:jsdoc_allow_input_prompt = 1
let g:jsdoc_enable_es6 = 1
" }}}
@codeinabox Thx. Did you try https://github.com/heavenshell/vim-jsdoc/tree/fix/default_params branch?
Yes. Went into .vim/bundle/vim-jsdoc and switched to that branch when I tried earlier.
@codeinabox Thx, I couldn't reproduced...
So, I add print debug statement.
Update fix/default_params
branch.
Run jsdoc and :messages
.
than, debug messages shows.
Could you paste debug messages?
Nothing seems to come up when I invoke :messages
I think your plugin manager is something wrong. I don't know what plugin manager are you using.
Yes. Went into .vim/bundle/vim-jsdoc and switched to that branch when I tried earlier.
Is this right way to switch branch? I think you did not switch branch.
Merge to master.
Using the ES6 code for handling defaults and
:JsDoc
with prompts enabled it generates the followingHowever as per the JSDoc documentation, should those params with defaults be listed as optional? ie