rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
583 stars 72 forks source link

Show "Enter OpenAI API Key" button instead of start chat in the side panel when no API key has been entered yet #16

Closed lgrammel closed 1 year ago

lgrammel commented 1 year ago

Is this request related to a problem? Please describe.

This should make onboarding smoother.

Describe the solution you'd like

Show "Enter OpenAI API Key" button instead of start chat in the side panel when no API key has been entered yet.

nicoespeon commented 1 year ago

https://user-images.githubusercontent.com/1094774/218515181-5f868da5-6fbb-49c2-b398-cb390ba4846b.mp4

There you go. It listens to the API key updates and renders a button instead of the chat otherwise.