diff --git a/CHANGELOG.md b/CHANGELOG.md index d77463e..4447bd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,27 @@ # Change Log All notable changes to the "code-stats-vscode" extension will be documented in this file. -Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. +## [Unreleased] +### Added -### 1.0.0 +### Changed -Initial release of code-stats-vscode +## [1.0.3] - 2017-03-18 +### Added +Added license for the logo from Nicd. -### 1.0.1 +### Changed +Fixed an accumulation of xp bug +## [1.0.2] - 2017-03-17 +### Added +Added a logo for the extension. + +## [1.0.1] - 2017-03-17 +### Added Added the missing github information to package.json Added the .vsix installation package as well. -### 1.0.2 - -Added a logo for the extension. +## [1.0.0] - 2017-03-17 +### Added +Initial release of code-stats-vscode diff --git a/LICENSE b/LICENSE index 06d46d3..ef600ea 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,36 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +The Code::Stats logo is licensed with CC BY-NC-ND 4.0: + +Copyright © 2016, Mikko Ahlroth + +The following is a summary of the CC BY-NC-ND 4.0 licence. Please see +http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode for the full +licence text. + +You are free to: + +Share — copy and redistribute the material in any medium or format +The licensor cannot revoke these freedoms as long as you follow the license +terms. +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, +and indicate if changes were made. You may do so in any reasonable manner, but +not in any way that suggests the licensor endorses you or your use. +NonCommercial — You may not use the material for commercial purposes. +NoDerivatives — If you remix, transform, or build upon the material, you may +not distribute the modified material. +No additional restrictions — You may not apply legal terms or technological +measures that legally restrict others from doing anything the license permits. +Notices: + +You do not have to comply with the license for elements of the material in the +public domain or where your use is permitted by an applicable exception or +limitation. +No warranties are given. The license may not give you all of the permissions +necessary for your intended use. For example, other rights such as publicity, +privacy, or moral rights may limit how you use the material. \ No newline at end of file diff --git a/README.md b/README.md index abd4799..8f082b1 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,24 @@ This extension contributes the following settings: ## Release Notes -### 1.0.0 +### 1.0.3 -Initial release of code-stats-vscode +Fixed an accumulation of XP bug. +Added a license for the logo. + +### 1.0.2 + +Added a logo for the extension. ### 1.0.1 Added the missing github information to package.json Added the .vsix installation package as well. -### 1.0.2 +### 1.0.0 + +Initial release of code-stats-vscode -Added a logo for the extension. ### For more information diff --git a/package.json b/package.json index 1d69852..613f577 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "code-stats-vscode", "displayName": "Code::Stats", "description": "Code::Stats package for Visual Studio Code", - "version": "1.0.2", + "version": "1.0.3", "publisher": "juha-ristolainen", "icon": "logo.png", "repository": { diff --git a/releases/code-stats-vscode-1.0.2.vsix b/releases/code-stats-vscode-1.0.3.vsix similarity index 86% rename from releases/code-stats-vscode-1.0.2.vsix rename to releases/code-stats-vscode-1.0.3.vsix index 4ea97e7..9f575a3 100644 Binary files a/releases/code-stats-vscode-1.0.2.vsix and b/releases/code-stats-vscode-1.0.3.vsix differ diff --git a/src/code-stats-api.ts b/src/code-stats-api.ts index 51c1bac..c0fb4a0 100644 --- a/src/code-stats-api.ts +++ b/src/code-stats-api.ts @@ -41,6 +41,9 @@ export class CodeStatsAPI { .then( (response) => { console.log(response); }) + .then ( () => { + pulse.reset(); + }) .catch((error) => { console.log(error); }); diff --git a/src/xp-counter.ts b/src/xp-counter.ts index b21f979..bc60dff 100644 --- a/src/xp-counter.ts +++ b/src/xp-counter.ts @@ -53,7 +53,6 @@ export class XpCounter { if (range === null || range === undefined ) { return 0; } - // console.log(`L${range.start.line}C${range.start.character} to L${range.end.line}C${range.end.character}`); if (range.start.line === range.end.line) { if (range.start.character === range.end.character) { return 1; @@ -61,7 +60,7 @@ export class XpCounter { return range.end.character - range.start.character; } } - // todo detect multiline changes + // multiline changes, copy/paste count as 1XP return 1; } @@ -83,7 +82,6 @@ export class XpCounter { this.updateTimeout = setTimeout(() => { this.api.sendUpdate(this.pulse); }, this.UPDATE_DELAY); - } private updateStatusBar(show: boolean, changeCount: string): void {