visual-studio-codearchlinuxgithub-copilot

Problem with trying to use Copilot in VS Code on Arch Linux


My PC runs Arch Linux, and I am already using copilot with neovim and Intelij IDEA. I tried to use it with VS Code too, but although i was able to install the extension successfully and make it trusted by GitHub, the code completion does not work.

After the extension installation I had to log in to my GitHub account, it was a little hard but after some trying I successfully logged in. I tried to use the official version of VS Code located in the AUR but nothing. I tried using the Arch Wiki and ChatGPT, but neither of them helped.

Here are my Copilot extension settings

{
    "github.copilot.enable": {
        "*": true,
        "yaml": false,
        "plaintext": false,
        "markdown": false,
        "scminput": false,
        "c": true
    },
    "github.copilot.advanced": {
        
    }
}

My version of VS Code is 1.77.3

I would also like to say that to use the Microsoft visual studio marketplace on arch's VS Code, you have to install code-marketplace from the AUR


Solution

  • If you are using AUR Code-OSS editor you need to remove it.

    To fix this issue you can install AUR visual-studio-code-bin editor. It works.