barnesoir / chatgpt-vscode-plugin

A VS code plugin for ChatGPT built by ChatGPT
MIT License
250 stars 61 forks source link

reset token does not work #11

Closed alexanderkjeldaas closed 1 year ago

alexanderkjeldaas commented 1 year ago

The view does conditional setup of the token so it will not catch that it was reset. Better to do this unconditionally.

        // Initialize session token and ChatGPT API if not done already
        if (!this.sessionToken) {
            await this.setUpSessionToken();
        }
barnesoir commented 1 year ago

Good spot

https://github.com/barnesoir/chatgpt-vscode-plugin/commit/42de560920f0a479600f19de2614253440ca06fd