LSP-copilot icon indicating copy to clipboard operation
LSP-copilot copied to clipboard

Github enterprise configuration appears to not work correctly

Open ryankoski-at-work opened this issue 1 year ago • 2 comments

Hello all,

Just installed LSP-copilot for the first time and trying to configure it to work with github enterprise. If I'm reading the docs correctly, I believe I just need to configure this section in settings:

// Settings in here override those in "LSP-copilot/LSP-copilot.sublime-settings"

{
	"settings": {
		"authProvider": "github-enterprise",
		"github-enterprise": {
			"url": "https://git.target.com"
		},
	},	
}

I've not configured any other settings. When I run Copilot login from the command pallet, instead of launching a github enterprise window it's still directing to github.com.

Have I incorrectly configure or misunderstood the proper process, or is this a bug? Thank you!

ryankoski-at-work avatar Sep 16 '24 14:09 ryankoski-at-work

Thanks, looking into this.

TerminalFi avatar Sep 16 '24 19:09 TerminalFi

Incase people will find this thread by search, sheding some light that OP might have found already... Copilot is not coming with self-hosted enterprise instances of GitHub, so it cannot be used airgapped and have to go through public enterprise cloud github. There are ways to link github enteprise instance account to public github account and that is how it can be used then for many users in single enterprise.

In other words github-enterprise setting effectively works as "referrer" rather than actual host to run Copilot from.

dimon222 avatar Dec 27 '24 05:12 dimon222

Worked for me with

{
  "settings": {
    "authProvider": "github-enterprise",
    "github-enterprise": {
      "uri": "https://yourdomain.ghe.com"
    },
  },
}

NB: "uri" , not "url"

anatanna avatar May 12 '25 16:05 anatanna