visual-studio-codegithubvscode-extensionsgithub-copilot

GitHub Copilot sign-in button not responding in VS Code after signing out — stuck in GHE.com instance login


After GitHub Copilot signed me out unexpectedly in VS Code, I was unable to sign in again. The "Sign in" button in the Copilot extension panel was unresponsive — clicking it did nothing.

I tried:

Nothing helped.

I clicked the option to sign in via ghe.com instance (GitHub Enterprise Cloud), thinking it might help. After that:

How can I reset GitHub Copilot in VS Code to sign in with my GitHub.com account again?

I'm looking for a way to:

Environment


Solution

  • The fix is to manually remove the GitHub Copilot login preferences from your VS Code settings.json.

    Steps:

    1. Open the command palette (Cmd+Shift+P or Ctrl+Shift+P)

    2. Choose Preferences: Open Settings (JSON)

    3. Look for this block:

      "github.copilot.advanced": {
        "serverUrl": "https://yourcompany.ghe.com"
      }