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.21k stars 134 forks source link

Add VSCode setting for API key #318

Closed kotx closed 1 year ago

kotx commented 1 year ago

Resolves #283. I was not able to test it for the VSCode Web extension, but in theory it should work.

Here's what it looks like: image image

Now setting the API key from the prompt (WakaTime: Api Key command) will also set it in VSCode global settings. Let me know if this should not be the case. VSCode Settings Sync is also enabled for the API key.

alanhamlett commented 1 year ago

Let's not set it by default from the prompt, only when set in the settings directly. Otherwise, a lot of people not running in dev containers will get confused when their vscode api key becomes out of sync with their ~/.wakatime.cfg api key.

kotx commented 1 year ago

@alanhamlett Should be fine now!