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.23k stars 137 forks source link

Allow the wakatime api key to be persisted via settings sync #283

Closed Milo123459 closed 1 year ago

randollrr commented 2 years ago

I was about to create the very same issue. I only work in devcontainer (for a clean python env) and I have to re-enter the api key at every mod or new container image. If we can have it in the user/settings that will save me time.

lablnet commented 1 year ago

I use GitHub codespace Whenever I create new codespace I have to enter API key again and again which is just time wasting!

alanhamlett commented 1 year ago

I'll work on a PR for this. How about a checkbox to enable saving to vscode settings instead of the ~/.wakatime.cfg file?

exil0867 commented 1 year ago

+1

wvffle commented 1 year ago

@alanhamlett How are the works on the PR?

exil0867 commented 1 year ago

For those who use Devcontainers, you can bind .wakatime.cfg:

"runArgs": [
  "-v",
  "${env:HOME}/.wakatime.cfg:/root/.wakatime.cfg"
],
mikebronner commented 1 year ago

For those who use Devcontainers, you can bind .wakatime.cfg:

"runArgs": [
  "-v",
  "${env:HOME}/.wakatime.cfg:/root/.wakatime.cfg"
],

Which file is this to be added to? Trying to add it to devcontainer.json lints with "Property runArgs is not allowed."

exil0867 commented 1 year ago

For those who use Devcontainers, you can bind .wakatime.cfg:

"runArgs": [
  "-v",
  "${env:HOME}/.wakatime.cfg:/root/.wakatime.cfg"
],

Which file is this to be added to? Trying to add it to devcontainer.json lints with "Property runArgs is not allowed."

Please check https://containers.dev/implementors/json_reference/#image-specific

kotx commented 1 year ago

@alanhamlett Is work still being done on a PR? If not I might be able to work on this

alanhamlett commented 1 year ago

@alanhamlett Is work still being done on a PR? If not I might be able to work on this

Not yet, so go for it 👍

kotx commented 1 year ago

Submitted a PR!