gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Github Copilot Extension Support (manual install)

Open bd82 opened this issue 4 months ago • 3 comments

I understand it is not possible to automatically install Github Copilot in Gitpod due to licensing issues (not published on open vsx registry).

Problem:

What I don't understand is why an end user cannot manually install it from the *.vsix file directly. When I do so I get an error:

image

Possible Cause:

My understanding is that Copilot Ext uses Github Auth Provider in VScode and that Gitpod replaced the implementation of the Github Authentication Extension which supplies this auth provider.

So the question is:

Does manually installing Copilot extension not work because:

  1. A problem in gitpod's replaced Github Auth extension implementation?
  2. Microsoft "locking down" usage of Copilot in None pure VSCode IDE context?

Related Issues:

  • https://github.com/gitpod-io/gitpod/issues/10242
  • https://github.com/gitpod-io/gitpod/issues/10032
  • https://github.com/gitpod-io/gitpod/issues/5060

bd82 avatar Feb 25 '24 09:02 bd82

cc @jeanp413 could you answer?

akosyakov avatar Feb 26 '24 08:02 akosyakov

I would assume that somehow GitHub token is not good for Copilot extension, maybe some scopes are missing.

akosyakov avatar Feb 26 '24 08:02 akosyakov

I looked at this farther and I suspect that it is not related to scopes.

copilot extension seem to request only [user:email] But it would still work properly if I modify it's bundled code to request something else (e.g [workflow]).

I suspect there is something special with the client_id which allows copilot to work. Perhaps this is also why Personal Access Tokens are not supported in the copilot CLI.

  • https://github.com/github/gh-copilot/issues/1

bd82 avatar Feb 26 '24 12:02 bd82