Re:GitHub Copilot available for JetBrains and Neovim
by speedgoose on Wednesday October 27, 2021 @04:03PM
(#29018399)
Yes it's not very shinning there. I would also throw the error instead of printing the error to the console and returning undefined.
[ Parent
| on HN ]
Re:GitHub Copilot available for JetBrains and Neovim
by ponyous on Wednesday October 27, 2021 @06:12PM
(#29019740)
You are in a callback there. Goodbye your error!
Re:GitHub Copilot available for JetBrains and Neovim
by speedgoose on Thursday October 28, 2021 @03:34AM
(#29023415)
Oh right. I once made a layer on top of the redis client to use promises because callbacks are a pain to deal with.