Open rschristian opened 2 years ago
Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
Same behavior on my VSCode, don't know how to fix.
Well that's bizarre. Swapping out the null
for any other type, as far as I can tell, works correctly.
Should I raise this issue on VSCode's tracker?
It's up to you.
I found suggest.jsdoc.generateReturns
in source code of VSCode, coc-tsserver may need to support it.
I'm running into a weird issue where
null
in JSDoc comments do not get picked up, but seemingly just disappear. The TS playground works correctly, however.Example snippet
CoC
As you'll see, the
| null
is just missing from the return signature.TS Playground
Playground Link
This works correctly.
Info
jsconfig.json
:CocInfo
Using
coc-tsserver
v1.8.6Let me know if I missed any other details that can help you track this down.