Skip to content

Commit

Permalink
Release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tcatche committed May 7, 2021
1 parent 3830ee8 commit 8ab344c
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ vsc-extension-quickstart.md
**/*.map
**/*.ts
!node_modules/.bin/cloc*
comments-counter*
comments-counter*
extension-packages/*
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Change Log

All notable changes to the "comments-counter" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
### 0.0.2

Add icon and add description.

### 0.0.1

Initial release

## [Unreleased]

- Initial release
- Add ignore in next version.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# comments-counter
统计代码中的注释率,展示在底部状态栏
Show comments counter and rate in the status bar.

统计代码中的注释率,展示在底部状态栏。

## Features

Expand All @@ -10,6 +12,10 @@ For example if there is an image subfolder under your extension project workspac

## Release Notes

### 0.0.2

Add icon and add description.

### 0.0.1

Initial release
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 15 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
{
"name": "comments-counter",
"displayName": "Comments Counter",
"description": "show comments counter and rate in the status bar",
"version": "0.0.1",
"description": "show comments counter and rate in the status bar; 在状态栏展示注释行数和注释率",
"version": "0.0.2",
"author": "tcatche",
"publisher": "tcatche",
"engines": {
"vscode": "^1.49.0"
},
"icon": "images/icon.png",
"license": "MIT",
"homepage": "https://github.com/tcatche/vscode-comments-counter",
"bugs": {
"url": "https://github.com/tcatche/vscode-comments-counter/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/tcatche/vscode-comments-counter"
},
"categories": [
"Other"
],
"keywords": [
"comments",
"counter",
"annotate",
"rate"
"rate",
"注释",
"注释率"
],
"activationEvents": [
"onStartupFinished"
Expand All @@ -33,11 +45,6 @@
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tcatche/comments-counter"
},
"devDependencies": {
"@types/vscode": "^1.49.0",
"@types/glob": "^7.1.3",
Expand Down
15 changes: 15 additions & 0 deletions src/.bin/cloc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/perl" ]; then
"$basedir/perl" "$basedir/../cloc/lib/cloc" "$@"
ret=$?
else
perl "$basedir/../cloc/lib/cloc" "$@"
ret=$?
fi
exit $ret
17 changes: 17 additions & 0 deletions src/.bin/cloc.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@ECHO off
SETLOCAL
CALL :find_dp0

IF EXIST "%dp0%\perl.exe" (
SET "_prog=%dp0%\perl.exe"
) ELSE (
SET "_prog=perl"
SET PATHEXT=%PATHEXT:;.JS;=;%
)

"%_prog%" "%dp0%\..\cloc\lib\cloc" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
18 changes: 18 additions & 0 deletions src/.bin/cloc.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent

$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/perl$exe") {
& "$basedir/perl$exe" "$basedir/../cloc/lib/cloc" $args
$ret=$LASTEXITCODE
} else {
& "perl$exe" "$basedir/../cloc/lib/cloc" $args
$ret=$LASTEXITCODE
}
exit $ret

0 comments on commit 8ab344c

Please sign in to comment.