Is there a way to install VSCode version with the latest Marketplace extension? Our users wanted to install GitHub Copilot extension but it’s not available. Our VSCode version is 1.100.2.
Thank you very much for your response. Currently, that extension is not compatible with our VSCode version. We will inspect this further. In the mean time, if you have any other suggestions, please let me know!
If you are deploying this in multi-tenant systems, I would be extra careful as it is very easy to perform prompt injection if the users do not take precautions.
In my (limited) experience, there are two solutions for this:
You add the ‘VSCode Tunnel’ as an app to your OOD platform and let users connect/tunnel to your cluster via their local VSCode app. On the local VSCode app, the Github Copilot can give AI assistance, while the heavy-lifting (e.g. running stuff via the VSCode terminal) happens on the actual servers
In our case, we have the VSCode-server app installed, and the limited(?) market place of this app does not offer the Github Copilot extension. In this case, you can advice your users to take the following route to manually add the Github Copilot extension to their extension list:
In VSCode-server, open the Extensions tab from the left tray; on the top right, there are three dots ‘…’ and opening that drop-down menu, there is an option to ‘Install from VSIX …’.
Once installations are complete, press F1 and type: ‘Github Copilot: sign in’ in the prompt bar. Then a pop up appears asking ‘The extension ‘GitHub Copilot’ wants to sign in using GitHub.’ … click on ‘Allow’
A new pop up spits an authentication/activation code out, e.g. ‘Your Code: CD9C-C054
To finish authenticating, navigate to GitHub and paste in the above one-time code.’
Clicking on the ‘Copy and continue to Github’ and let VSCode open the external Github URL. There you should paste your 8-character activation code.
Back to VSCode session, press F1 again and enter 'Github Copilot: enable
Once that is done, you are all set. The VSCode does not even require a refresh/restart to start using the Copilot code completion and more
Disclaimer: I have no assessment of the possible security risks of the 2nd approach, and I am open to hearing back from the community upon any possible volunerabilities.