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

BUG: Unable to correctly count the number of comment lines in the .vue file #89

Open chansee97 opened 1 year ago

chansee97 commented 1 year ago

I'm sure I have the .vue extension installed Can count the contents of the template tag, Cannot count the contents of script&style tags

DEMO: image image

The expectation here is that there are 3 lines of statistical comments, but there is actually only 1 line

Is there a solution?

shisanchun commented 1 year ago

Yes, i also found it

uctakeoff commented 1 year ago

VSCodeCounter is not designed to "get the grammar of each language right," but to "count reasonably well even for unknown languages, though not accurately.

It is not designed to correctly measure files that contain grammars of multiple languages in a single file, and is difficult to modify.

We apologize for not meeting your expectations.