Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Copilot, Copilot Chat and Copilot Labs Extensions Not Working in VSCodium #1546

Open
Tushar49 opened this issue Jun 12, 2023 · 63 comments
Labels
bug Something isn't working

Comments

@Tushar49
Copy link

Describe the bug
I am having trouble integrating GitHub Copilot and Copilot Labs extensions with VSCodium. Despite having access to GitHub Copilot X, I am unable to get it working with VSCodium. The Copilot Labs extension isn't working and the Copilot chat doesn't show up in the activity bar.

Please confirm that you have searched existing issues in the repo.
Yes, I have searched existing issues.

Please confirm that you have checked the FAQs.
Yes, I have checked the FAQs.

VSCodium version
Version: 1.79.0 (system setup)
Release: 23159
Commit: 4be06ce527f2ea3b9b3096ac4b4c5aa11c64e7a4
Date: 2023-06-08T21:27:43.604Z
Electron: 22.3.10
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

To Reproduce
Steps to reproduce the behavior:

  1. Install VSCodium and the GitHub Copilot extension.
  2. Attempt to authenticate the GitHub Copilot extension.
  3. Receive error: "Invalid copilot token: missing token: 404" and "GitHub Copilot could not connect to server. Extension activation failed: "User not authorized".
  4. Install and attempt to authenticate the Copilot Labs extension.
  5. Receive error: "Something went wrong. Please check that the main GitHub Copilot extension is installed and running and try again." and "Something went wrong checking access: Authentication error: NotAuthorized".

Expected behavior
I expect to be able to use GitHub Copilot and Copilot Labs extensions with VSCodium without any issues.

Screenshots
(If applicable, add screenshots to help explain your problem.)

Desktop (please complete the following information):

  • OS: Windows 11
  • Architecture: x64
  • Version: 10.0.22621

Additional context
I have tried several troubleshooting steps, including signing in and out of GitHub Copilot, editing the product.json file, and generating a new personal access token. None of these steps have resolved the issue.

@Tushar49 Tushar49 added the bug Something isn't working label Jun 12, 2023
@daiyam
Copy link
Member

daiyam commented Jun 12, 2023

#1487

@Tushar49
Copy link
Author

I have given a try to the steps mentioned in that issue as well, but it only deals with CoPilot Nightly extension issue, and not the Copilot labs as well as Copilot chat issues.

@gabrielrotbart
Copy link

+1
Have had copilot work flawlessly using the steps above for some months, but now that I have access to Chats it's not showing up in the activity bar even though it does in Vscode (re-installed for the first time in a long time just to test it out 😔) and the following inline commands are not showing up either:

  • Copilot generate
  • Copilot explain

Appreciate all you do maintainers. Could be that we just accept the trade off?

@GitMensch
Copy link
Collaborator

Is this something we could help with in VSCodium at all - or should we just link the discussion issue in the wiki and close this issue?

@Tushar49
Copy link
Author

This is an issue that Copilot chat oesnt work

@GitMensch
Copy link
Collaborator

The issue is that this extension is both proprietary and closed-source and only "blesses" the MS binaries; the question is therefore: can we do anything about this in vscodium directly - like adjusting the distributed product.json?

If not then the discussion issue seems to be a better place to check what/how something works and to document the result in the wiki - like we do for other MS extensions - or place a link to the discussion there.

The real solution to this issue would be of course that the extension is made public and under a free license (even if the endpoint needs online access which is stored behind an access token) and does not need any "blessing"but work on the OSS version of vscode out-of-the-box.
But that's to be requested in the Copilot issue tracker and/or the vscode repo.

@wtf403
Copy link

wtf403 commented Jun 26, 2023

Yes, it's possible to make Copilot Chat work by tweaking some lines in the product.json file. However, I haven't managed to do this for the VScode Figma extension🥲 We definitely need someone to explain what's going on in the product.json file.

@wtf403
Copy link

wtf403 commented Jul 2, 2023

I was able to log into figma extension with duti util: duti -s com.vscodium vscode

@movq
Copy link

movq commented Jul 5, 2023

Yes, it's possible to make Copilot Chat work by tweaking some lines in the product.json file.

@wtf403 Would you mind sharing what tweaks are needed to get this working? I'm using VSCodium Insider, and have the Copilot Chat extension installed. Regular Copilot features work but Chat doesn't. The extension logs for Copilot Chat say

[INFO] [auth] [2023-07-05T16:11:08.579Z] GitHub login failed
[ERROR] [default] [2023-07-05T16:11:08.583Z] You are not signed in to GitHub. Please sign in to use Copilot.

even though I am definitely logged in (since regular Copilot works).

Edit: forgot to mention but I'm also in the Chat private beta.

@wtf403
Copy link

wtf403 commented Jul 5, 2023

@movq Sorry, for now, I can't 🙃
I recently reinstalled VSCodium and overwrote the product.json file. After that, the student subscription on connected GitHub account expired🤣 Currently i'm in Copilot Chat waitlist. Not sure how to make it work again.

@hronro
Copy link

hronro commented Jul 7, 2023

I just downloaded the latest VS Codium and the latest Copilot Chat extension, and when I try to install the .vsix file, I got this error:

CleanShot 2023-07-07 at 12 37 50@2x

@clockcoinG1
Copy link

not that hard to fix, edit

/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/product.json                                                                                                    2023-07-07 21:04:37```
and rename the app from VSCodium to vscode. download zipped vsix from webstore or from 
`
~/Library/Application\ Support/Visual\ Studio\ Code/CachedExtensionVSIXs
`

unzip it and edit the package.json to accept vscodium, and change min version

@zeroaddresss
Copy link

zeroaddresss commented Aug 11, 2023

As multiple users reported, Copilot Chat is not available (ofc I have beta access and I have it working flawlessly on VSCode Insiders).
Other than that, I just got the following error message from Github Copilot Labs extension:
image

@zeroaddresss
Copy link

#1487

Not helpful, we're dealing with GitHub Copilot Chat extension here

@Neko-Box-Coder
Copy link

Hey, has anyone who has access to chat (and lab) have tried the insider edition of vscodium?
https://github.com/VSCodium/vscodium-insiders

It will also be nice if a link of insider to be added to README since it is not obvious that it exists.

@adriadam10
Copy link

adriadam10 commented Sep 28, 2023

not that hard to fix, edit

/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/product.json                                                                                                    2023-07-07 21:04:37```
and rename the app from VSCodium to vscode. download zipped vsix from webstore or from 
`
~/Library/Application\ Support/Visual\ Studio\ Code/CachedExtensionVSIXs
`

unzip it and edit the package.json to accept vscodium, and change min version

i have installed it but the app does not show up in the left bar

@Neko-Box-Coder
Copy link

I opened an issue for copilot chat. Feel free to upvote and add any details/comments to it

@GitMensch
Copy link
Collaborator

GitMensch commented Sep 29, 2023

Hey, has anyone who has access to chat (and lab) have tried the insider edition of vscodium? https://github.com/VSCodium/vscodium-insiders

It will also be nice if a link of insider to be added to README since it is not obvious that it exists.

Done with b667614 :-)
... along with the request to add insider version where not available

@clockcoinG1
Copy link

It sends the editor version in the request to copilot, u need to edit extension.js and hardcode the editor version value in as vscode/insiders

@Neko-Box-Coder
Copy link

@clockcoinG1 I assume you are talking about the chat extension.js.

I am going through it right now (unfortunately) but it is way too many lines and I am no expert in js.
Which part of the extension.js do I need to change?

@Neko-Box-Coder
Copy link

Neko-Box-Coder commented Sep 30, 2023

It seems like it is trying to call the getSession from the vscode module but it returned undefined.

return await vscode.authentication.getSession("github", ['user:email'], {silent: !0}) ?? 
        await vscode.authentication.getSession("github", ['read:user'], {silent: !0});

this is under __webpack_modules__ in 31041 in t.getSession if anyone is interested enough to dive in.

Seems like it is similar to microsoft/vscode-pull-request-github#1778

@clockcoinG1
Copy link

clockcoinG1 commented Sep 30, 2023

@clockcoinG1 I assume you are talking about the chat extension.js.

I am going through it right now (unfortunately) but it is way too many lines and I am no expert in js. Which part of the extension.js do I need to change?

Search `Bearer ${ in extension.js ( ~/.vscode-insiders/extensions/github-copilot-chat/dist/
add console.log there
image
edit the Editor Version header to be hardcoded to vscode/1.83-insiders

image
copy the same editor version and hardcode it into the Bearer request so insteadof using the getEditorVersion function it just uses vscode/insiders. The endpoint used requires compatible header of editor version to get the authtoken. If you dont have
image
then open dev panel
image

Here you see it pulling the version, change that to vscode/1.83.0-insider:

image

if it still doesnt work run it with GH_COPILOT_TOKEN, or GITHUB_TOKEN, env var and run it

@clockcoinG1
Copy link

clockcoinG1 commented Sep 30, 2023

Hardcode editor version into the headers or edit the getEditorVersion function to return a constant.

image
as long as ur editor version is compatible u can fetch to the completion endpoint "https://api.githubcopilot.com/chat/completions"

@clockcoinG1
Copy link

clockcoinG1 commented Sep 30, 2023

also in /Applications/VSCodium.app/Contents/Resources/app/product.json
image
u can change product dataFolderName to .vscode-insiders and the product name to VSCode - Insiders , get it running on insiders then close it and run codium with that as its dataDIrectory. add these lines to
extensionEnabledApiProposals as well:
"GitHub.copilot": ["inlineCompletionsAdditions", "interactive", "interactiveUserActions", "terminalDataWriteEvent"], "GitHub.copilot-nightly": ["inlineCompletionsAdditions", "interactive", "interactiveUserActions", "terminalDataWriteEvent"], "GitHub.copilot-chat": ["handleIssueUri", "interactive", "interactiveUserActions", "terminalContextMenu", "terminalDataWriteEvent", "terminalSelection", "terminalQuickFixProvider", "chatProvider", "chatSlashCommands", "chatVariables", "chatAgents", "readonlyMessage", "mappedEditsProvider", "aiRelatedInformation"],

@AlexGrafe
Copy link

Could someone provide a step by step explanation of that? @clockcoinG1 perhaps?
Or could this be put into some "CoPilot Chat Installer" script or even extension?
I'm finding it difficult to see which are now the exact steps after the multiple answers given.

Thanks to all

@Neko-Box-Coder
Copy link

Yeah, I tried to follow the instructions but failed to even reach the point where @clockcoinG1 got.
It failed before sending any of the authentication tokens, where it couldn't even start a session.
I gave up after that since it was really a major pain to debug it.

It is possible that I might have missed something but that's as far as I got.

To be fair, the version of chat I was using seems to be different from @clockcoinG1 as well so that could also be a reason.

Ideally the vscode team should fix this, it will be great if you guys can upvote the issue if you haven't.

@clockcoinG1
Copy link

I would try to just rename the app name and datadirs to vscode-insiders, and enable copilot chat in preferences
rename vscodium-oss to vsdode-insiders

/Applications/VSCodium.app/Contents/Resources/app/product.json

@trinitronx
Copy link

trinitronx commented Oct 20, 2023

I just managed to hack / patch VSCode OSS's product.json + the extension's /extension/package.json to get GitHub.copilot-chat-0.9.2023102002 working on Manjaro's packaged:

  • extra/code 1.83.0-1
  • Plus also installed: aur/code-features 1.83.0-1 (+49 1.12)

Note: (For ArchLinux-based distros) The extra/code repo/package is known as "Code OSS" variant of a VSCodium distribution. Meanwhile, the aur/code-features repo/package also patches the /usr/lib/code/product.json to enable some API proposals and other things.

The changes I had to make on top of this were in the following diff (note my /usr/lib/code/product.json had tab indentations instead of spaces, so this diff may not apply cleanly for everyone without ignoring whitespace):

--- a/product.json	2023-10-20 11:17:19.854726954 -0600
+++ b/product.json	2023-10-20 11:20:43.678596193 -0600
@@ -534,20 +534,26 @@
 			"inlineCompletionsAdditions"
 		],
 		"GitHub.copilot-chat": [
-			"handleIssueUri",
 			"interactive",
 			"interactiveUserActions",
-			"terminalContextMenu",
+			"chatProvider",
+			"codeActionAI",
+			"findTextInFiles",
+			"textSearchProvider",
 			"terminalDataWriteEvent",
+			"terminalExecuteCommandEvent",
 			"terminalSelection",
 			"terminalQuickFixProvider",
-			"chatSlashCommands",
-			"chatVariables",
-			"chatAgents",
+			"handleIssueUri",
 			"readonlyMessage",
-			"chatProvider",
+			"chatVariables",
 			"mappedEditsProvider",
-			"aiRelatedInformation"
+			"aiRelatedInformation",
+			"chatAgents",
+			"chatAgents2",
+			"chatAgents2Additions",
+			"defaultChatAgent",
+			"contribSourceControlInputBoxMenu"
 		],
 		"GitHub.remotehub": [
 			"contribRemoteHelp",

Finally, the other necessary change was to unpack the .vsix and edit: extension/package.json to modify the supported version pin under "engines": { "vscode": "__VERSION_HERE", ... }

I changed it from: ^1.84.0-20231017 to mach my version of /usr/bin/code --version

$ /usr/bin/code --version                                                                                                                                
1.83.0
e7e037083ff4455cf320e344325dacb480062c3c
x64

Relevant part of extension/package.json:

"engines": {
  "vscode": ">=1.83.0",
  "npm": ">=9.0.0",
  "node": ">=18.0.0"
}

Steps:

  1. Quit VSCode if running

  2. Backup /usr/lib/code/product.json

    cp /usr/lib/code/product.json /path/to/backup-directory/product.json.$(date +%Y-%m-%d).bak
    
  3. Patch /usr/lib/code/product.json

    # Note: diff may not apply cleanly!  You may need to edit by hand
    cd /usr/lib/code && sudo patch -p1 --ignore-whitespace < /path/to/product_json.patch
    
  4. Unpack .vsix:

    mkdir /tmp/GitHub.copilot-chat-0.9.2023102002.vsix.unpacked
    unzip -d /tmp/GitHub.copilot-chat-0.9.2023102002.vsix.unpacked/  ~/Downloads/GitHub.copilot-chat-0.9.2023102002.vsix
    
  5. Change extension/package.json (it's a minified JSON, so search for engines)

    # I used vim... but feel free to use your favorite text editor
    vim /tmp/GitHub.copilot-chat-0.9.2023102002.vsix.unpacked/extension/package.json
    
  6. Save the file & quit editor

  7. Repack the patched .vsix:

    cd /tmp/GitHub.copilot-chat-0.9.2023102002.vsix.unpacked
    zip -r  /tmp/GitHub.copilot-chat-0.9.2023102002.patched-0.83-0.vsix  .
    
  8. Manually install the patched .vsix:

    • Open Code OSS

    • Go to Extensions (Ctrl+Shift+x)

    • Click the ... kebab menu icon (hover tooltip says "Views and More Actions...")

    • Click "Install from VSIX..."

    • Browse for your patched .vsix file: /tmp/GitHub.copilot-chat-0.9.2023102002.patched-0.83-0.vsix

    • Optional, but recommended: Copy the patched .vsix installer to somewhere for backup purposes

      cp /tmp/GitHub.copilot-chat-0.9.2023102002.patched-0.83-0.vsix ~/path/to/some/vsix/installers-backupdir 
      

@AlexGrafe
Copy link

@trinitronx I believe your patch file specifically calls out line 534 while in my version of the file it's somewhere else. The patch command won't work then. Anyone else reproducing this would need to adapt that.

@GitMensch
Copy link
Collaborator

Please complain at the Copilot extension that it does not work with open-source builds of vscode; if they keep changing things then they should either document what is needed or preferably add it in vscode itself.

note that a newer vsix may need an insider build - You didn't try with the old vsix that previously worked, did you?
Note that for a working Copilot you may need a newer vsix in general (depends on what they've changed)

@T-vK
Copy link

T-vK commented Apr 12, 2024

I literally just installed vscodium-bin-marketplace and was able to install GitHub Copilot Chat from the VSCodium UI without any issues. No need to manually download .vsix files or manipulate a product.json file after every update.

Depending on how you installed VSCodium, you might prefer one of these options:

For me (having vscodium-bin), my preferred choice was vscodium-marketplace-bin.

I'm using an the latest Manjaro Linux.

@TimTheBig
Copy link

TimTheBig commented Apr 13, 2024

I installed GitHub Copilot Chat from the VSCodium UI with the visualstudio marketplace and after fixing a lot of errors with the product.json, I can not fix: vscodium github-copilot-chat Chat failed to load. Please ensure that the GitHub Copilot Chat extension is up to date. which appears even if I'm using the pre-release version of the extension. Even though the main copilot extension works.

@maasikai
Copy link

maasikai commented Apr 14, 2024

I installed Copilot and Copilot Chat using the marketplace. I managed to get the login to work by adding "authLearnMore" into "GitHub.copilot-chat" permissions in product.json, restarting vscodium, pressing ctrl+p and ">GitHub Copilot: Sign in to Chat" and going through the auth flow. However, there is still some uncaught error that prevent the chat from working:
[error] Error: chatParticipant must be declared in package.json: github.copilot.default

@TimTheBig
Copy link

I keep getting:
Uncaught Errors (1)

 n.onDidPerformAction is not a function
TypeError: n.onDidPerformAction is not a function at OY.createAgent (/Users/me/.vscode-oss/extensions/github.copilot-chat-0.14.1/dist/extension.js:861:10236) at OY.registerDefaultAgent

@maasikai
Copy link

I keep getting: Uncaught Errors (1)

 n.onDidPerformAction is not a function
TypeError: n.onDidPerformAction is not a function at OY.createAgent (/Users/me/.vscode-oss/extensions/github.copilot-chat-0.14.1/dist/extension.js:861:10236) at OY.registerDefaultAgent

Finally got it running. Switching to vscodium-insiders seemed to do the trick.

@TimTheBig
Copy link

TimTheBig commented Apr 14, 2024

vscodium stable 1.88.1.24104 works for me with product.json modifications.

@melroy89
Copy link

melroy89 commented Apr 18, 2024

vscodium stable 1.88.1.24104 works for me with product.json modifications.

GitHub Copilot chat released a new version of the extension just a moment ago, which might give you a message like: Unable to install extension 'github.copilot-chat' as it is not compatible with VSCodium '1.x.x.. So you might need to download an older version or manually changing the extension if you really want to (no guarantees): #1753 (comment)

@melroy89
Copy link

melroy89 commented Apr 18, 2024

GitHub Copilot chat released a new version of the extension just a moment ago, which might give you a message like: Unable to install extension 'github.copilot-chat' as it is not compatible with VSCodium '1.x.x.. So you might need to download an older version or manually changing the extension if you really want to (no guarantees): #1753 (comment)

In fact, all latest versions of GitHub Copilot Chat are TOO NEW and they only show the latest 5 versions on the marketplace web site.... omg.

So I needed to use: https://stackoverflow.com/questions/76211091/how-can-i-get-a-list-of-a-vs-code-extensions-versions

So I could execute: vsce show GitHub.copilot-chat --json | jq

Giving me:

 .....

    {
      "version": "0.14.2024031901",
      "flags": 1,
      "lastUpdated": "2024-03-19T09:42:12.960Z"
    },
    {
      "version": "0.14.2024031802",
      "flags": 1,
      "lastUpdated": "2024-03-18T16:40:48.993Z"
    },
    {
      "version": "0.14.2024031501",
      "flags": 1,
      "lastUpdated": "2024-03-15T09:31:21.830Z"
    },

....

I'll pick 0.14.2024031901 version. Finally I changed the download URL manually to incorporate the hand picked version (again: 0.14.2024031901) in the URL, for example: https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot-chat/0.14.2024031901/vspackage

I also believe now I picked a too old version, so Copilot chat still doesn't work. And if I picked the latest version(s), it's too new for Vscodium.. Aaaahhhh

Then I saw errors that it also needed the GitHub.vscode-pull-request-github extenstion? So I also downloaded & installed that. I hope it's not required, but OK.

@TimTheBig
Copy link

Then I saw errors that it also needed the GitHub.vscode-pull-request-github extenstion? So I also downloaded & installed that. I hope it's not required, but OK.

GitHub.vscode-pull-request-github is not required.

@melroy89
Copy link

melroy89 commented Apr 19, 2024

Copilot Chat is just not working with VScodium (just copilot does work, but not Chat):

copilot_chat_not_working

Again, downloading the latest GitHub Copilot chat for VScodium gives me compatibilities error messages. So either way, we can't use Copilot chat.

@TimTheBig
Copy link

TimTheBig commented Apr 20, 2024

It works for me, you have to use the marketplace from VSCode and add the additional lines to your product.json.

@GitMensch
Copy link
Collaborator

Other than the vscode marketplace, did you use something else? Which version of VSCodium and which extension(s) do you use?

You mean these additions? #1546 (comment)

I see no reason to not include them by default, @daiyam do you?

@zeroaddresss
Copy link

I keep getting: Uncaught Errors (1)

 n.onDidPerformAction is not a function
TypeError: n.onDidPerformAction is not a function at OY.createAgent (/Users/me/.vscode-oss/extensions/github.copilot-chat-0.14.1/dist/extension.js:861:10236) at OY.registerDefaultAgent

@TimTheBig I am getting the same error now, how did you fix this? I'm using Copilot Chat extension v0.14.2024032901 and VSCodium v1.88.1.24104. Already made all the required changes in the product.json.
Don't really want to move to the Insiders build though, I would like to stick to my standard VSCodium if possible.

@TimTheBig
Copy link

TimTheBig commented Apr 20, 2024

As far as I know you have to use the VS code marketplace. The extension may have been updated, you might have to wait for a VSCodium update.

@daiyam
Copy link
Member

daiyam commented Apr 20, 2024

@GitMensch, my answer from #1852

VSCodium is using the same extensionEnabledApiProposals as Visual Studio Code. I've checked.

Here the script doing it https://github.com/VSCodium/vscodium/blob/master/build/update_api.sh

Those Apis depend on the version of the editor and of the extension. Your needs seem like an older version

@zeroaddresss
Copy link

As far as I know you have to use the VS code marketplace. The extension may have been updated, you might have to wait for a VSCodium update.

@TimTheBig you mean this marketplace or the built-in extensions marketplace in VSCodium UI?

@TimTheBig
Copy link

TimTheBig commented Apr 22, 2024

You have to modify your product.json to use the VSCode marketplace, then you should be able to install the extensions right from the UI.
This guide worked for me: VSCode Gallery In VSCodium.
You still need the product.json "extensionEnabledApiProposals" tweaks.

@daiyam
Copy link
Member

daiyam commented Apr 22, 2024

@TimTheBig Which version are you using? (VSCodium and Copilot)

@TimTheBig
Copy link

TimTheBig commented Apr 23, 2024

VSCodium:

Version: 1.88.1
Release: 24104
Commit: 0d01a72525276e5e3771fe5851b9c83de0de1e2b
Date: 2024-04-13T01:43:30.924Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0

GitHub Copilot: v1.196.0
GitHub Copilot Chat: v0.14.1

@kasperk81
Copy link

yelp! is there a script to patch the whole thing without manual tweaks? argument1: path to product.json, argumetn2: path to /support product.json etc.

spent several hours to make this work but failing miserably. installed from vscode marketplace (#1546 (comment)):

image

@TimTheBig
Copy link

TimTheBig commented May 18, 2024

yelp! is there a script to patch the whole thing without manual tweaks? argument1: path to product.json, argumetn2: path to /support product.json etc.

spent several hours to make this work but failing miserably. installed from vscode marketplace (#1546 (comment)):

What version of copilot-chat is the store page showing beside the name?

@afarah1
Copy link

afarah1 commented Jul 6, 2024

For me completions worked but chat did nothing when I pressed enter, the same issue as @melroy89 (#1546 (comment)). Turns out it's a matter of matching the correct vscodium and copilot chat versions. I'll present one solution, but it may be possible to match different versions and have it work.

  1. Install vscodium 1.90.2 from your favorite source. This is the current version in Gentoo.
  2. Download the latest GitHub CoPilot (click Download Extension): https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
  3. Download GitHub CoPilot Chat 0.17.20* (notice you need two extensions!): https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot-chat/0.17.2024062801/vspackage
  4. Change package.json from the chat VSIX to match your vscodium version: In a clear folder run unzip GitHub.copilot-chat-0.17.2024062801.vsix, rm GitHub.copilot-chat-0.17.2024062801.vsix, open extension/package.json in your favorite text editor and change "engines":{"vscode":"^1.92.0", to "engines":{"vscode":"^1.90.0",. Save the file then run zip -r GitHub.copilot-chat-0.17.2024062801.vsix .
  5. Open vscodium, go to Extensions, click ... then Install from VSIX and install both files - copilot and the chat one you modified

You're done, enjoy!

out3

@ahmet-cetinkaya
Copy link

Is there a compatible Github Copilot Chat version in VSCodium version 1.93.0?

@melroy89

This comment was marked as spam.

@GitMensch
Copy link
Collaborator

Just out of curiosity: What is the benefit of using a using non-proprietary, non-telemetry-defaulting binary of vscode when installing a proprietary binary extension (which is likely licensed to be only used with Visual Studio Code) that talks the whole time to a service that's not under your control using non-free binaries of a non-free language model (trained on free software) which likely has several kinds of telemetry?
I seem to miss several important points here and would like to get the "real picture".

@ahmet-cetinkaya
Copy link

ahmet-cetinkaya commented Sep 11, 2024

You're right. But the idea is to reduce telemetry as much as possible. Sometimes not everything is perfect. I personally use Github Copilot because I can't find a open source model that works well.

@gylfirst
Copy link

After replacing again the product.json tu use microsoft store, i was able to reinstall both extensions for copilot (standard + chat).
Hope that will works for you

@GitMensch
Copy link
Collaborator

If you are not aware - you don't need to replace the product.json but can override it per environment variable / user config file (upstream vscode sadly did not implement the PR because "they are working on providing a user endpoint" ... since some years now - so that's VSCodium only): https://github.com/VSCodium/vscodium/blob/master/docs/index.md#how-to-use-a-different-extension-gallery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests