Comments (2)
That's an interesting idea.
If the counter is always counting, the load will be high, so I think that it is good to make the whole count only the first time and then only the file being edited.
However, if you do so, the edits made in other editors will not be reflected, but is there any better way?
from vscode-counter.
That's a good point. (but wouldn't that be a rather uncommon situation?)
I can only think of two solutions:
-
watch file updates. This can also be costly, so I thought about vscode events who should already monitor project's file tree. I don't know much about that, but couldn't find it here at least: https://code.visualstudio.com/api/references/activation-events
-
time delays. Check all files at regular intervals, which could possibly be long enough by default, and maybe configurable (if it doesn't compromise extension by adding yet another setting).
If I may add another suggestion in this issue (I know I'm stretching the line here), I think real time line count of current file is good but could easily be seen manually. What could be more useful, IMHO, are blank and comment counts for the current file. That would be a pain to do manually. So two modes for user to choose from: real time whole workspace line count, or real time blanks and comments line count for current file.
from vscode-counter.
Related Issues (20)
- Path is rendered incorrectly HOT 1
- How to block Comments? HOT 4
- Open VSX?
- Support storing collected language elsewhere HOT 5
- Error Loading Webview HOT 1
- Count the files in the top-level as a separate item HOT 2
- Counts documentation comments as code in Julia HOT 1
- New lines in string
- Not exclude dirs HOT 1
- How do I convert to Chinese HOT 1
- Bug : blockComments character in a line of code falsifies the counts HOT 1
- BUG: Unable to correctly count the number of comment lines in the .vue file HOT 2
- Doesn't appear to work when used in a tunnel HOT 2
- Doesn't recognize javascript HOT 1
- Support for `ifdef Compiler Directives HOT 2
- Does not count comments in batch HOT 1
- It seems does not work with remote ssh in ubuntu22.04? Just show there was no target file. HOT 2
- Trailing newline ('\n') character in source code is treated as an extra blank line HOT 6
- 1
- Maximum call stack exceeded when counting very large repo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-counter.