VSCode with Github Copilot on OOD

Hi all,

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.

Thanks in advance!

Hi and welcome!

You can search what extensions are available in the Extensions tab. Here’s my search for ‘copilot’ which appears to return what you’re looking for.

Hi Jeff,

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!

You can install the official VSCode in Open OnDemand, this is what we do with our integration with Azure CycleCloud Workspace for Slurm https://learn.microsoft.com/en-us/azure/cyclecloud/overview-ccws

Our VSCode application are publicly available in this repo https://github.com/Azure/cyclecloud-open-ondemand/tree/main/specs/default/cluster-init/files/playbooks/files/applications

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.

Yash

In my (limited) experience, there are two solutions for this:

  1. 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
  2. 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:
    • download the following two *.vsix (zip) files to your VSC account:
      Github Copilot extension
      Copilot Chat extension
    • 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.