Closed carlosala closed 2 years ago
Can you post an example js file with JSDoc, to let me make a test/debug.
Fuck, I got the error. Prettier removed me the second *
in some files and tsserver detected it, correctly, as a regular comment. I'm so sorry for you lost time.
Thank you!
@fannheyward where is true that I'm not getting completion is when defining types, for instance:
/**
* @typedef {object} CurrencyInputType
* @property {function} setAmount
* @property {function} setCurrency
* @property {string} ariaLabel
*/
When I type @property {cursorhere}
I am not getting type completion. If I begin typing stri
I don't get the completion for string
. It's not quite annoying, but it would be great to have it solved.
Thanks!
Note: the same happens if, instead of having @typedef {object} CurrencyInputType
, you have @typedef CurrencyInputType
I can reproduce.
Should be problem of tsserver, checkout https://github.com/neoclide/coc-tsserver/blob/master/Readme.md#troubleshooting
Hi! I have been using JSDoc for a while with coc-tsserver, and there are some times (more than 50%) that I am not getting autocompletion for it. This is my
jsconfig.json
config:My coc-tsserver config is the one as default, I just have
"tsserver.implicitProjectConfig.checkJs": true
, but it does nothing with this issue. Does anyone knows how to get completion with JSDoc? Thanks!