uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
152 stars 20 forks source link

Wrong results when there is a 2nd directory which has the requested name included #48

Closed goeppner closed 3 years ago

goeppner commented 3 years ago

When I execute "count lines in directory" on a directory e.g. named "swcMatrix" and there is a 2nd directory which has the same name included, e.g. "swcMatrixLedController", the 2nd directory is counted additionally in the result, here the file result.md: `# Summary

Date : 2021-02-04 06:31:49

Directory u:\app\swcMatrix

Total : 21 files, 5348 codes, 1184 comments, 1025 blanks, all 7557 lines

details

Languages

language files code comment blank total
C 10 4,520 966 816 6,302
C++ 11 828 218 209 1,255

Directories

path files code comment blank total
. 21 5,348 1,184 1,025 7,557
.. 15 3,924 493 727 5,144
..\swcMatrixLedController 15 3,924 493 727 5,144
..\swcMatrixLedController\include 8 741 166 169 1,076
..\swcMatrixLedController\src 7 3,183 327 558 4,068
include 3 87 52 40 179
src 3 1,337 639 258 2,234

details`

VS Code Counter version: v2.2.1 Could this issue please be fixed?

uctakeoff commented 3 years ago

Thanks for the report. Fixed in version 2.2.2. Please update your VSCode to the latest version and try it.

goeppner commented 3 years ago

Great! Issue is fixed and works correctly. Thank you for the quick response!