Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real time counter for workspace #10

Open
bernardoadc opened this issue Nov 6, 2019 · 2 comments
Open

Real time counter for workspace #10

bernardoadc opened this issue Nov 6, 2019 · 2 comments

Comments

@bernardoadc
Copy link

Create option to choose wheter real time counter is for current file or whole workspace (all file extensios). Futurely, file extensions could be chosen too.

@uctakeoff
Copy link
Owner

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?

@bernardoadc
Copy link
Author

That's a good point. (but wouldn't that be a rather uncommon situation?)

I can only think of two solutions:

  1. 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

  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants