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

*.slnf Solution filter support #300

Open
AndrewNikolin opened this issue Nov 7, 2024 · 2 comments
Open

*.slnf Solution filter support #300

AndrewNikolin opened this issue Nov 7, 2024 · 2 comments

Comments

@AndrewNikolin
Copy link

While working on solutions filtered using solution filter https://www.jetbrains.com/help/rider/Solution_filters.html noticed that the plugin tracks time spent under the Git repository name (which solution is only a part of) and not the filtered solution/general solution name. Would be great to add support for more granular tracking

@AndrewNikolin AndrewNikolin changed the title *.slnf Project filter support *.slnf Solution filter support Nov 7, 2024
@alanhamlett
Copy link
Member

alanhamlett commented Nov 7, 2024

We always use the git project name first so the project has the same name across all your IDEs, even non-jetbrains ones. If you turn on debug mode in the plugin settings, do you see alternate project matching the solution in your ~/.wakatime/wakatime.log file? That means we're detecting the solution and using it as the backup project if no git repo is found.

More general project detection info: https://wakatime.com/faq#projects

@AndrewNikolin
Copy link
Author

Thanks for the reference provided!

I was initially confused and thought there is some issue (lacking functionality) with data collection, looks like JB plugin platform behaves in an interesting way: when I work on any files part of *.slnf, the git repository name (basically name of root folder of git repo) is used as project name. But if I use, e.g., *.http scratch file which isn't technically part of the project, then JB plugin API likely responds to this call https://github.com/wakatime/jetbrains-wakatime/blob/master/src/com/wakatime/intellij/plugin/WakaTime.java#L247 with the name of slnf project filter.
So far only such out of scope HTTP file is reported with *.slnf name, all other edits fall under the git repo name

In my stats I also see other projects part of same repo reported with their own names (names of *.sln), but unfortunately the details fall out of available timeframe, so not sure, likely there is something similar to HTTP scratches there

I'll check the log soon and follow up with findings

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

No branches or pull requests

2 participants