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

Make base glob configurable via coverageBaseDir #271

Merged

Conversation

amatosov-rbx
Copy link
Contributor

Rational

On big workspaces (e.g. 12k directories, 74k files) recursive glob lookup ** is very time consuming. Currently there is no way to avoid it via configuration options.
manualCoverageFilePaths is the only option, however it eliminates any kind of glob lookup, which is not desired.

Change

Introduce coverageBaseDir that allows users to fully customize lookup glob for coverage files
It defaults to **, so existing behavior is not going to change.

Copy link
Owner

@ryanluker ryanluker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, I would add a few tests (unit or integration, I can also help a bit next weekend if you are having trouble adding them but there should be quite a few examples to go off of 🤔 ) and maybe a few documentation comments but otherwise I think this is a good addition, thanks again!

src/coverage-system/coverageservice.ts Outdated Show resolved Hide resolved
src/coverage-system/coverageservice.ts Outdated Show resolved Hide resolved
src/coverage-system/coverageservice.ts Outdated Show resolved Hide resolved
src/files/filesloader.ts Show resolved Hide resolved
@ryanluker ryanluker added this to the 2.6.0 milestone Jul 17, 2020
@amatosov-rbx amatosov-rbx marked this pull request as draft July 17, 2020 23:05
@amatosov-rbx
Copy link
Contributor Author

Converted to draft. #270 should go in first

@amatosov-rbx amatosov-rbx marked this pull request as ready for review July 20, 2020 18:44
@amatosov-rbx
Copy link
Contributor Author

@ryanluker this PR is ready for review

@amatosov-rbx amatosov-rbx requested a review from ryanluker July 20, 2020 18:56
Copy link
Owner

@ryanluker ryanluker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thanks again for the effort on this!
2.6.0 should go out within a week (depends when I find time to do the release).
I will also keep an eye on the sentry io crash reports for any issues that might arise due to this feature addition!

@ryanluker ryanluker merged commit c58dd08 into ryanluker:master Jul 20, 2020
@amatosov-rbx amatosov-rbx deleted the feature/fully-configurable-glob branch July 21, 2020 17:32
@amatosov-rbx
Copy link
Contributor Author

@ryanluker Do you have any updates on the 2.6.0 release date?

@ryanluker
Copy link
Owner

@amatosov-rbx I was hoping the last item from the milestone would get in but if it isn't by Sunday I will just go away with a release. https://github.com/ryanluker/vscode-coverage-gutters/milestone/31

@ryanluker
Copy link
Owner

@amatosov-rbx 2.6.0 should be out now! thanks again for the effort in adding / fixing this 😁 .
https://github.com/ryanluker/vscode-coverage-gutters/releases/tag/v2.6.0

@amatosov-rbx
Copy link
Contributor Author

@ryanluker Thanks for getting the release out and quick feedback on fixes and additions =)

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

Successfully merging this pull request may close these issues.

2 participants