mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-04-22 10:52:13 +00:00
Added a license for the logo from @Nicd.
Fixed an accumulation of XP bug.
This commit is contained in:
parent
8001217d15
commit
e4d94c5878
24
CHANGELOG.md
24
CHANGELOG.md
@ -1,17 +1,27 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to the "code-stats-vscode" extension will be documented in this file.
|
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 missing github information to package.json
|
||||||
Added the .vsix installation package as well.
|
Added the .vsix installation package as well.
|
||||||
|
|
||||||
### 1.0.2
|
## [1.0.0] - 2017-03-17
|
||||||
|
### Added
|
||||||
Added a logo for the extension.
|
Initial release of code-stats-vscode
|
||||||
|
33
LICENSE
33
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,
|
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
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
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.
|
14
README.md
14
README.md
@ -18,18 +18,24 @@ This extension contributes the following settings:
|
|||||||
|
|
||||||
## Release Notes
|
## 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
|
### 1.0.1
|
||||||
|
|
||||||
Added the missing github information to package.json
|
Added the missing github information to package.json
|
||||||
Added the .vsix installation package as well.
|
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
|
### For more information
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "code-stats-vscode",
|
"name": "code-stats-vscode",
|
||||||
"displayName": "Code::Stats",
|
"displayName": "Code::Stats",
|
||||||
"description": "Code::Stats package for Visual Studio Code",
|
"description": "Code::Stats package for Visual Studio Code",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"publisher": "juha-ristolainen",
|
"publisher": "juha-ristolainen",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Binary file not shown.
@ -41,6 +41,9 @@ export class CodeStatsAPI {
|
|||||||
.then( (response) => {
|
.then( (response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
|
.then ( () => {
|
||||||
|
pulse.reset();
|
||||||
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
@ -53,7 +53,6 @@ export class XpCounter {
|
|||||||
if (range === null || range === undefined ) {
|
if (range === null || range === undefined ) {
|
||||||
return 0;
|
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.line === range.end.line) {
|
||||||
if (range.start.character === range.end.character) {
|
if (range.start.character === range.end.character) {
|
||||||
return 1;
|
return 1;
|
||||||
@ -61,7 +60,7 @@ export class XpCounter {
|
|||||||
return range.end.character - range.start.character;
|
return range.end.character - range.start.character;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// todo detect multiline changes
|
// multiline changes, copy/paste count as 1XP
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +82,6 @@ export class XpCounter {
|
|||||||
this.updateTimeout = setTimeout(() => {
|
this.updateTimeout = setTimeout(() => {
|
||||||
this.api.sendUpdate(this.pulse);
|
this.api.sendUpdate(this.pulse);
|
||||||
}, this.UPDATE_DELAY);
|
}, this.UPDATE_DELAY);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateStatusBar(show: boolean, changeCount: string): void {
|
private updateStatusBar(show: boolean, changeCount: string): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user