Skip to content

Commit

Permalink
Add: New Configuration VSCodeCounter.history.
Browse files Browse the repository at this point in the history
Update: dependencies. for security.
  • Loading branch information
uctakeoff committed Aug 22, 2020
1 parent 7367271 commit c4c0cfb
Show file tree
Hide file tree
Showing 10 changed files with 245 additions and 175 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

* workspace counter in status bar.

## [2.2.0]

### Added

- New Configuration : `VSCodeCounter.history`.

## [2.1.0]

### Added
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ VS Code extension: counts blank lines, comment lines, and physical lines of sour

Therefore, VSCode Counter's ability of **collecting VSCode language extensions** is now called as an independent function. The idea is to collect the information once in the local environment and store it so that it can be used remotely.

* First, launch VSCode on your local server.
* First, launch VSCode on your local.
* Then, open the command palette and select `VSCodeCounter: Save the collected language configurations`.
* Then *settings.json* will store the configuration information collected from the current language extensions .
![](images/save_lang.png)
Expand All @@ -84,5 +84,7 @@ However, you must carry the stored information to the remote environment by your
* `VSCodeCounter.outputAsMarkdown`: Whether to output the result as a Markdown file.
* `VSCodeCounter.outputPreviewType`: Type of output file to preview after counting. Choose from `text`, `csv`, `markdown` or `none`.
* `VSCodeCounter.saveLocation`: Specify where to store the collected language configurations.
* `VSCodeCounter.history`: Controls the number of recent result to keep in history.


**Enjoy!**
165 changes: 138 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-counter",
"displayName": "VS Code Counter",
"description": "Count lines of code in many programming languages.",
"version": "2.1.0",
"version": "2.2.0",
"publisher": "uctakeoff",
"author": {
"name": "Ushiyama Kentaro"
Expand Down Expand Up @@ -136,6 +136,12 @@
"**/node_modules/**"
]
},
"VSCodeCounter.history": {
"description": "%configuration.history.description%",
"type": "integer",
"minimum": 0,
"default": 5
},
"VSCodeCounter.outputDirectory": {
"description": "%configuration.outputDirectory.description%",
"type": "string",
Expand Down Expand Up @@ -262,11 +268,11 @@
"@types/glob": "^7.1.2",
"@types/graceful-fs": "^4.1.3",
"@types/minimatch": "^3.0.3",
"@types/mocha": "^7.0.2",
"@types/mocha": "^8.0.3",
"@types/node": "^14.0.14",
"@types/vscode": "^1.46.0",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"mocha": "^8.1.1",
"tslint": "^6.1.2",
"typescript": "^3.9.6",
"vscode-test": "^1.4.0"
Expand Down
1 change: 1 addition & 0 deletions package.nls.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"configuration.endOfLine.description": "出力ファイルで使用する改行文字.",
"configuration.exclude.description": "ファイルとフォルダーを除外するための glob パターン.",
"configuration.include.description": "ファイルとフォルダーを追加するための glob パターン.",
"configuration.history.description": "最近の結果を履歴として保持する数. 1 より大きいとき 結果をディレクトリを分けて保存する.",
"configuration.outputDirectory.description": "結果出力先のディレクトリパス.",
"configuration.outputAsText.description": "結果をテキストファイルで出力する.",
"configuration.outputAsCSV.description": "結果をCSVファイルで出力する.",
Expand Down
1 change: 1 addition & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"configuration.endOfLine.description": "A new line character to be used in the output file.",
"configuration.exclude.description": "Configure glob patterns for excluding files and folders.",
"configuration.include.description": "Configure glob patterns for including files and folders.",
"configuration.history.description": "Controls the number of recent result to keep in history. If it is greater than 1, save the results in separate directories.",
"configuration.outputDirectory.description": "Directory path for outputting results.",
"configuration.outputAsText.description": "Whether to output the result as a text file.",
"configuration.outputAsCSV.description": "Whether to output the result as a CSV file.",
Expand Down
Loading

0 comments on commit c4c0cfb

Please sign in to comment.