0

I want to develop a vs-code plugin that extends the functionality of GitHub CoPilot. I want to listen to code completions and reward the user with points based on the length and content of the completions made with CoPilot. Is it possible to write a plugin that builds upon the original plugin, or do I have to use the OpenAI API to recreate the functionality of the plugin to add my Gamification elements? Thanks a lot in advance for any kind of help.

Paul
  • 292
  • 1
  • 3
  • 7
  • _"add my Gamification elements"_ - oof. [MS did this once](https://blogs.microsoft.com/blog/2012/01/18/visual-studio-achievements-program-brings-gamification-to-development/), achievements like "copy paste your code 5 times" or "use this shortcut key 30 times" or "have 4000 lines of code in one file". It did not necessarily lead to better code, quite the contrary. – CodeCaster Oct 28 '22 at 12:58

2 Answers2

2

It will be possible only if GitHub Copilot also exposes an API to other extensions. And, since GitHub Copilot is not an open source extension, you won't be able to look its source to find out.

In this case, I suggest you to ask them, opening an issue on their support channel.

If no API is exposed, you won't be able to develop your extension, unfortunately.

Hope this helps

alefragnani
  • 2,478
  • 11
  • 16
1

You will likely have to use OpenAI Codex API