Skip to content

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.

License

Notifications You must be signed in to change notification settings

Vaelek/vscode-wakatime

 
 

Repository files navigation

DOES NOT CURRENTLY FUNCTION As it is this will flood the server with activities every time you do something. I don't have the time to fix it right now.

WakaTime for Azure Data Studio

Metrics, insights, and time tracking automatically generated from your programming activity.

To install, go to the Releases tab and download the latest vsix file. Install via the File menu in ADS.

This is a fork of the WakaTime VSCode plugin for use with Azure Data Studio. Tested (so far) only on Windows. I made this for myself, but from all the posts I saw in my quest to make the VSCode version work in ADS, I am not alone, so I make this publicly available to anyone that would like it.

The VS Code extension does function in ADS, but not with unsaved files, which is a very common, if not majority way to use it.

If you are editing a saved query, the filename will be reflected, assuming you have not disabled filenames. If you are editing an unsaved query, then the filename will be passed as General.sql

In my opinion, the most common use of ADS is ad-hoc queries, not projects.. As such, a new command has been added

type project

If not set, the project will be reported as Generic SQL

In the original project, the WakaTime cli is silently downloaded on first run, and checked against the latest version on every subsequent launch. Due to a combination of issues during development, and a general distaste for the security implications of remote scripts, the Wakatime cli is bundled in this extension, and the remote fetching has been disabled.

Original project notes follow

Installation

  1. Press F1 or CMD + Shift + P and type install. Pick Extensions: Install Extension.

type install

  1. Type wakatime and hit enter.

type wakatime

  1. Restart Visual Studio Code.

  2. Enter your api key, then press enter.

(If you’re not prompted, press `F1` or `CMD + Shift + P` then type `WakaTime API Key`.)
  1. Use VSCode and your coding activity will be displayed on your WakaTime dashboard.

Usage

Visit https://wakatime.com to see your coding activity.

Project Overview

Configuring

$WAKATIME_HOME defaults to $HOME

Some settings are available from CMD+SHIFT+p, then typing wakatime.

Settings are stored in the INI file at $WAKATIME_HOME/.ads.wakatime.cfg.

More information can be found from wakatime core.

Troubleshooting

First, turn on debug mode:

  1. Press CMD+SHIFT+p
  2. Type wakatime.debug, and press Enter.
  3. Select true, then press Enter.

Next, open your Developer Console to view logs and errors:

Help → Toggle Developer Tools

Errors outside the scope of vscode-wakatime go to $WAKATIME_HOME/.ads.wakatime.log from wakatime-cli.

The How to Debug Plugins guide shows how to check when coding activity was last received from your editor using the Plugins Status Page.

For more general troubleshooting info, see the wakatime-cli Troubleshooting Section.

About

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.2%
  • C 2.2%
  • Other 0.6%