Closed linde12 closed 3 years ago
In my tests, put your cursor on =>
and fire <Plug>(coc-codeaction-cursor)
, you will get:
After the first action executed:
What's your coc-tsserver version? I'm using 1.8.6.
Check log of your tsserver https://github.com/neoclide/coc-tsserver#troubleshooting
In my tests, put your cursor on
=>
and fire<Plug>(coc-codeaction-cursor)
, you will get:After the first action executed:
Thank you! I was using coc-codeaction
, i didn't know of coc-codeaction-cursor
:smiley:
coc-codeaction-cursor is recommended
I cant get this feature to work (or maybe it needs implementation in coc-tsserver?) It should be available in typescript: https://github.com/Microsoft/TypeScript/pull/23423
The only option i get is to create a function statement. I want to be able to quickly add braces around an arrow function, e.g. if i have something like:
Then i want to be able to quickly convert that arrow function to a block as such:
vim version: NVIM v0.5.0 node version: v14.17.2 coc.nvim version: 0.0.80-3086844413 coc.nvim directory: /home/linde/.vim/plugged/coc.nvim term: alacritty platform: linux