Skip to content

Commit

Permalink
Merge pull request #117 from wakatime/revamp
Browse files Browse the repository at this point in the history
Revamp
  • Loading branch information
gandarez authored Aug 12, 2021
2 parents 871b4ff + 0247807 commit a436af4
Show file tree
Hide file tree
Showing 34 changed files with 2,429 additions and 2,960 deletions.
54 changes: 27 additions & 27 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
image: Visual Studio 2019

environment:
major: 10
minor: 1
patch: 0

configuration: Release

init:
- ps: |
$Env:VersionPrefix = "$($Env:major).$($Env:minor).$($Env:patch)"
before_build:
- ps: |
$manifestPath = (Get-ChildItem .\*WakaTime\*.vsixmanifest-release).FullName
$manifestXml = [xml](Get-Content $manifestPath)
$manifestXml.PackageManifest.Metadata.Identity.Version = "$($Env:VersionPrefix)"
$manifestXml.Save($manifestPath)
- nuget restore

build:
project: WakaTime.sln
verbosity: minimal

artifacts:
- path: 'WakaTime\**\*.vsix'
image: Visual Studio 2019

environment:
major: 10
minor: 1
patch: 0

configuration: Release

init:
- ps: |
$Env:VersionPrefix = "$($Env:major).$($Env:minor).$($Env:patch)"
before_build:
- ps: |
$manifestPath = (Get-ChildItem .\*WakaTime\*.vsixmanifest-release).FullName
$manifestXml = [xml](Get-Content $manifestPath)
$manifestXml.PackageManifest.Metadata.Identity.Version = "$($Env:VersionPrefix)"
$manifestXml.Save($manifestPath)
- nuget restore

build:
project: WakaTime.sln
verbosity: minimal

artifacts:
- path: 'WakaTime\**\*.vsix'
name: vsix
32 changes: 16 additions & 16 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
WakaTime is written and maintained by Alan Hamlett and
various contributors:


Development Lead
----------------

- Alan Hamlett <alan.hamlett@gmail.com>


Patches and Suggestions
-----------------------

- Carlos Henrique Gandarez <gandarez@gmail.com>
- Stelzi79 <969932+Stelzi79@users.noreply.github.com>
- Vivek C <c_vivek@rediffmail.com>
WakaTime is written and maintained by Alan Hamlett and
various contributors:
Development Lead
----------------
- Alan Hamlett <alan.hamlett@gmail.com>
- Carlos Henrique Gandarez <gandarez@gmail.com>
Patches and Suggestions
-----------------------
- Stelzi79 <969932+Stelzi79@users.noreply.github.com>
- Vivek C <c_vivek@rediffmail.com>
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ History
-------


11.0.0 (2021-08-09)
++++++++++++++++++

- Drop support for versions below 2015.
- It will correctly initialize asyncronously.
- Update WakaTime.Shared.ExtensionUtils dependency to v3.0.0.
- Fix uninstall process that could not find LICENSE file.


10.3.1 (2020-10-09)
++++++++++++++++++

Expand Down
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2021, WakaTime, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 changes: 0 additions & 30 deletions LICENSE.txt

This file was deleted.

198 changes: 85 additions & 113 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,113 +1,85 @@
visualstudio-wakatime
=====================

[![Build Status](https://ci.appveyor.com/api/projects/status/pwyxjwo2q78ao3jl/branch/master?svg=true)](https://ci.appveyor.com/project/alanhamlett/visualstudio-wakatime/branch/master)
[![Coding time tracker](https://wakatime.com/badge/github/wakatime/visualstudio-wakatime.svg)](https://wakatime.com/badge/github/wakatime/visualstudio-wakatime)

Visual Studio extension to quantify your coding using https://wakatime.com/.


Installation
------------

1. Inside Visual Studio, navigate to `Tools``Extensions...`

2. Click the `Online` category at the left, then search for `wakatime`.

3. Click the `Download` button, then click `Install`.

4. Click the `Restart Now` button.

3. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`.

4. Use Visual Studio and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).


Screen Shots
------------

![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png)


Supported Visual Studio Editions
--------------------------------

* Visual Studio 2010
* Visual Studio 2012
* Visual Studio 2013
* Visual Studio 2015
* Visual Studio 2017
* Visual Studio 2019


#### Visual Studio for Mac

Visual Studio for Mac is supported with the [WakaTime for Monodevlop extension][monodevelop].


#### Visual Studio 2010 ( Legacy )

For legacy Visual Studio 2010, use the [legacy WakaTime 2010 extension][legacy extension].


#### Visual Studio Express

Microsoft [does not allow][express article] extensions for Visual Studio Express edition in the gallery.
To use WakaTime for Visual Studio Express, download and install [WakaTime for Express][latest release].

Alternatively, you may clone the github repo and build the extension using the `Express` build profile.
The resulting `bin/Express/WakaTime.vsix` extension file will install into Visual Studio Express when run.


Contributing
------------

To open and build this project, please use Visual Studio 2017.

For debugging, configure the product to open in a new Visual Studio instance:

1. Open the project properties (ALT + ENTER)
2. In the Debug tab, set to Start external program. e.g: ```C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe```
3. Add command line arguments: ```/rootsuffix Exp```
4. Change the solution according to the version of Visual Studio you're targeting:
* Express - Visual Studio Express
* Legacy - Visual Studio 2010
* Release - Visual Studio 2012+ Community, Pro, Enterprise, etc..

Note: The Debug solution is only for including debugger symbols.


[latest release]: https://github.com/wakatime/visualstudio-wakatime/releases/latest
[legacy extension]: https://marketplace.visualstudio.com/items?itemName=WakaTime.WakaTime2010
[express article]: https://visualstudiomagazine.com/articles/2014/05/21/no-extensions-for-visual-studio-express.aspx


Troubleshooting
---------------

Look for a `Tools``WakaTime Settings` menu in Visual Studio.
If that menu doesn't exist, something prevented the WakaTime extension from loading.

Turn on debug mode from `Tools``WakaTime Settings`.

Are there error messages in your Visual Studio Output window?

Open the Output window from `View``Output` (`ctrl` + `alt` + `O`).

![Output Window](https://raw.githubusercontent.com/wakatime/visualstudio-wakatime/master/output-window.png)

If there are no messages in your Visual Studio Output window, check your `.wakatime.log` file:

`C:\Users\<user>\.wakatime.log`

Lastly, uncaught exceptions go to [ActivityLog.xml][activitylog]. Uncaught exceptions are rare, so check your ActivityLog.xml only after checking your Output Window and `.wakatime.log` file.

The [How to Debug Plugins][how to debug] guide shows how to check when coding activity was last received from your IDE using the [User Agents API][user agents api].
For more general troubleshooting info, see the [wakatime-cli Troubleshooting Section][wakatime-cli-help].


[wakatime-cli-help]: https://github.com/wakatime/wakatime#troubleshooting
[how to debug]: https://wakatime.com/faq#debug-plugins
[user agents api]: https://wakatime.com/developers#user_agents
[monodevelop]: https://wakatime.com/help/plugins/monodevelop
[activitylog]: http://blogs.msdn.com/b/visualstudio/archive/2010/02/24/troubleshooting-with-the-activity-log.aspx
# visualstudio-wakatime

[![Build Status](https://ci.appveyor.com/api/projects/status/pwyxjwo2q78ao3jl/branch/master?svg=true)](https://ci.appveyor.com/project/alanhamlett/visualstudio-wakatime/branch/master)
[![Coding time tracker](https://wakatime.com/badge/github/wakatime/visualstudio-wakatime.svg)](https://wakatime.com/badge/github/wakatime/visualstudio-wakatime)

Visual Studio extension to quantify your coding using <https://wakatime.com/>.

## Installation

1. Inside Visual Studio, navigate to `Tools``Extensions...`
2. Click the `Online` category at the left, then search for `wakatime`.
3. Click the `Download` button, then click `Install`.
4. Click the `Restart Now` button.
5. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`.
6. Use Visual Studio and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).

## Screen Shots

![Project Overview](WakaTime/Assets/dashboard.png)

## Supported Visual Studio Editions

* Visual Studio 2015
* Visual Studio 2017
* Visual Studio 2019

## Visual Studio for Mac

Visual Studio for Mac is supported with the [WakaTime for Monodevlop extension][monodevelop].

## Visual Studio Express

Microsoft [does not allow][express article] extensions for Visual Studio Express edition in the gallery.
To use WakaTime for Visual Studio Express, download and install [WakaTime for Express][latest release].

Alternatively, you may clone the github repo and build the extension using the `Express` build profile.
The resulting `bin/Express/WakaTime.vsix` extension file will install into Visual Studio Express when run.

## Contributing

To open and build this project, please use Visual Studio 2019.

For debugging, configure the product to open in a new Visual Studio instance:

1. Open the project properties (ALT + ENTER)
2. In the Debug tab, set to Start external program. e.g: ```C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe```
3. Add command line arguments: ```/rootsuffix Exp```
4. Change the solution according to the version of Visual Studio you're targeting:

* Express - Visual Studio Express 2015 and 2017
* Release - Visual Studio 2015+

> Note: The Debug solution is only for including debugger symbols.
[latest release]: https://github.com/wakatime/visualstudio-wakatime/releases/latest
[legacy extension]: https://marketplace.visualstudio.com/items?itemName=WakaTime.WakaTime2010
[express article]: https://visualstudiomagazine.com/articles/2014/05/21/no-extensions-for-visual-studio-express.aspx

## Troubleshooting

Look for a `Tools``WakaTime Settings` menu in Visual Studio.
If that menu doesn't exist, something prevented the WakaTime extension from loading.

Turn on debug mode from `Tools``WakaTime Settings`.

Are there error messages in your Visual Studio Output window?

Open the Output window from `View``Output` (`ctrl` + `alt` + `O`).

![Output Window](https://raw.githubusercontent.com/wakatime/visualstudio-wakatime/master/output-window.png)

If there are no messages in your Visual Studio Output window, check your `.wakatime.log` file:

`C:\Users\<user>\.wakatime.log`

Lastly, uncaught exceptions go to [ActivityLog.xml][activitylog]. Uncaught exceptions are rare, so check your ActivityLog.xml only after checking your Output Window and `.wakatime.log` file.

The [How to Debug Plugins][how to debug] guide shows how to check when coding activity was last received from your IDE using the [User Agents API][user agents api].
For more general troubleshooting info, see the [wakatime-cli Troubleshooting Section][wakatime-cli-help].

[wakatime-cli-help]: https://github.com/wakatime/wakatime#troubleshooting
[how to debug]: https://wakatime.com/faq#debug-plugins
[user agents api]: https://wakatime.com/developers#user_agents
[monodevelop]: https://wakatime.com/help/plugins/monodevelop
[activitylog]: http://blogs.msdn.com/b/visualstudio/archive/2010/02/24/troubleshooting-with-the-activity-log.aspx
Loading

0 comments on commit a436af4

Please sign in to comment.