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

Behavior when hide_project_names and exclude are both true #1129

Closed
ArtofBugs opened this issue Nov 21, 2024 · 6 comments
Closed

Behavior when hide_project_names and exclude are both true #1129

ArtofBugs opened this issue Nov 21, 2024 · 6 comments
Assignees

Comments

@ArtofBugs
Copy link

In my .wakatime.cfg right now, I have both exclude = true to exclude all projects (along with a list of specific folders to include under the include key) and hide_project_names = true. I would expect that any folders not in the include list would be ignored, but right now anytime I open any folder in vscode and edit a file, a .wakatime-project file is created and times for the project appear on my dashboard. Is this intended behavior? I didn't see anything about this behavior in the docs.

@gandarez gandarez transferred this issue from wakatime/vscode-wakatime Nov 21, 2024
@gandarez gandarez self-assigned this Nov 21, 2024
@gandarez
Copy link
Member

@ArtofBugs exclude accepts a list of regular expressions and does not accept "true" as global variable to ignore everything.

https://github.com/wakatime/wakatime-cli/blob/develop/USAGE.md#settings-section

@ArtofBugs
Copy link
Author

ArtofBugs commented Nov 21, 2024

Ohh ok, that would explain things. I saw that bools were accepted in the example config table (the one you linked) so I assumed true worked too. Thanks!

@ArtofBugs
Copy link
Author

Confirmed it works correctly with regex instead of true; closing :) Thanks for the quick reply!

@alanhamlett
Copy link
Member

We should treat true as .* same as other bool/list configs?

@alanhamlett alanhamlett reopened this Nov 21, 2024
@gandarez
Copy link
Member

Implemented by #1130 and will be released soon.

@gandarez
Copy link
Member

Released on v1.105.2

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

3 participants