diff --git a/CHANGELOG.md b/CHANGELOG.md index 618d0a4..726b735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how * workspace counter in status bar. +## [2.0.0] + +### Added + +- New Command : `Save the collected language configurations`. + +### Update + +- This extension is no longer resident. + - Don't save whether or not the program is shown in the status bar in the settings. + ## [1.3.5] ### Fixed diff --git a/README.md b/README.md index 61e35fa..4f4af11 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,13 @@ VS Code extension: counts blank lines, comment lines, and physical lines of sour * [github](https://github.com/uctakeoff/vscode-counter) * [Marketplace](https://marketplace.visualstudio.com/items?itemName=uctakeoff.vscode-counter) +## VSCode Counter 2.0 is released! + +* Experimental support for "**VSCode Remove Development**". + + When using VSCode Counter in *VSCode Remove Development*, use the `Save language configurations` function You will need to. + [See below for more information](#save-language-configurations). + ## Features - Count the code lines of source code in workspace or directory. @@ -41,9 +48,25 @@ VS Code extension: counts blank lines, comment lines, and physical lines of sour * Available languages can be increased by adding language extensions. +### Save language configurations + +**VSCode Counter** is able to aggregate in unknown languages by referring to the information in the installed language extensions. However, I found out that **this information is not available in Remote Development**. + +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. +* 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) +* Connect to the remote and use the VSCodecounter as usual. + + +You can also change the location where your configurations are stored. +However, you must carry the stored information to the remote environment by yourself. + + ## Extension Settings -* `VSCodeCounter.showInStatusBar`: Whether to show the count result of the current file on the status bar in real time. * `VSCodeCounter.useGitignore`: Whether to use '.gitignore' files for excluding files. * `VSCodeCounter.useFilesExclude`: Whether to use setting 'files.exclude' for excluding files. * `VSCodeCounter.printNumberWithCommas`: Whether to print a number with commas as thousands separators.(except for CSV) @@ -56,6 +79,6 @@ VS Code extension: counts blank lines, comment lines, and physical lines of sour * `VSCodeCounter.outputAsCSV`: Whether to output the result as a CSV file. * `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.blockComment`: Define patterns indicating the beginning and end of the block document(here document). +* `VSCodeCounter.saveLocation`: Specify where to store the collected language configurations. **Enjoy!** diff --git a/images/save_lang.png b/images/save_lang.png new file mode 100644 index 0000000..fbc82ed Binary files /dev/null and b/images/save_lang.png differ diff --git a/package-lock.json b/package-lock.json index 4dd9281..da1bd9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vscode-counter", - "version": "1.3.5", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -701,9 +701,9 @@ } }, "jsonc-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", - "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.3.0.tgz", + "integrity": "sha512-b0EBt8SWFNnixVdvoR2ZtEGa9ZqLhbJnOjezn+WP+8kspFm+PFYDN8Z4Bc7pRlDjvuVcADSUkroIuTWWn/YiIA==" }, "locate-path": { "version": "5.0.0", diff --git a/package.json b/package.json index f9314f5..f1b276b 100644 --- a/package.json +++ b/package.json @@ -272,7 +272,7 @@ "vscode-test": "^1.4.0" }, "dependencies": { - "jsonc-parser": "^2.2.1", + "jsonc-parser": "^2.3.0", "minimatch": "^3.0.4" } }