TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
671 stars 25 forks source link

No sign in popup on WSL #216

Open mcrampon opened 3 hours ago

mcrampon commented 3 hours ago

Hi!

I'm running Sublime from inside a WSL instance. In this case, it seems that the Github popup used to sign in never appears.

Any workaround I could use? Like manually setting a token somewhere in a config file?

jfcherng commented 3 hours ago

Like manually setting a token somewhere in a config file?

https://github.com/TerminalFi/LSP-copilot/issues/156#issuecomment-2136442438 if you have that file/dir on other signed machine or VSCode, you can copy them.

jfcherng commented 3 hours ago

The GitHub pop is opened with ST's plugin API in https://github.com/TerminalFi/LSP-copilot/blob/20f7cbc275dc6e008c0363942acefc662b4940f0/plugin/commands.py#L780-L781 . So that sounds like a bug in ST core or non-goal on WSL.

As a workaround, maybe we can print the verification URL and usercode to ST console so that the user can manually open it.