leona / helix-gpt

Code assistant language server for Helix with support for Copilot/OpenAI/Codeium/Ollama
MIT License
285 stars 19 forks source link

[BUG] running copilot auth requires a copilot token to be set? #38

Closed nilsherzig closed 4 months ago

nilsherzig commented 4 months ago

helix-editor version current master

helix-gpt version 0.27 / nixos unstable

Describe the bug running the command to fetch the copilot token requires a copilot token to be set?

Looks like it fails at this check https://github.com/leona/helix-gpt/blob/4647598e9e13330bde4b818896891d0398fcea7c/src/config.ts#L76C1-L78C2

I think you can just add the authCopilot bool to this check to resolve the issue. Thanks for the project.

nilsherzig commented 4 months ago

nvm, looks like I'm not fully awake. I didn't notice that you guys already did that, sorry for the issue spam.