Re:Copilot Internals
by thakkarparth007 on Sunday December 18, 2022 @10:00PM
(#34047845)
RE: neovim
Looks like the 20 file logic is present in neovim as well. I went through its code (https://github.com/github/copilot.vim/blob/release/copilot/d...) after beautifying it (https://codebeautify.org/jsviewer), and found it present.
I couldn't exactly trace it to a specific neovim event but I'm guessing it corresponds to buffer-update-events (https://neovim.io/doc/user/api.html#api-buffer-updates) or something like that.
Re: getting in trouble
I surely hope not :P. I mean, the code is basically public (available on every user's computer).
Interesting, thanks.
Re:Copilot Internals
by varunkmohan on Sunday December 18, 2022 @10:52PM
(#34048253)
The neovim plugin mostly actually communicates with a node-js service seen here (https://github.com/github/copilot.vim/tree/release/copilot/d...). This is why they require you to install node for using the plugin and allows them to share logic with the vscode extension (also in javascript). I think all the features should be available even in neovim.
> Then, most recently accessed 20 files of the same language are queried from VSCode.
are probably not available by default in nvim?
---
Also, do you think there's any chance you get in trouble for reverse engineering copilot?