wakatime / vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vs-code
BSD 3-Clause "New" or "Revised" License
1.25k stars 137 forks source link

Ask for api when offline #255

Closed shirobachi closed 2 years ago

shirobachi commented 2 years ago

I was in train with no internet, extension ask me for API key like every 5 seconds what made almost impossible to work ;(

May you add some option like not now or sth?

alanhamlett commented 2 years ago

The api key prompt doesn't depend on your network connection. So you needed to set your api key but couldn't find it because no internet? How did you install the plugin without internet?

shirobachi commented 2 years ago

I am using wakatime for vscode since months. So that weird, but still it asks me I click ESC and it ask again in ~5secs..

alanhamlett commented 2 years ago

If somehow your ~/.wakatime.cfg file became corrupted and the plugin couldn't read your api key, it would only stop prompting after you enter something that matches the api key format. Just clicking ESC won't prevent it from prompting again the next time it tries to send your code stats.

shirobachi commented 2 years ago

I would not say it's "cool" behavior, but it's ok. Thanks!