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

feat: Add line coverage #46

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

spalmurray-codecov
Copy link
Collaborator

Adds line coverage to the extension!

I've set this feature to be disabled by default as it seems like a safer way to get this out there. It can be manually enabled in the extension settings.

At the top of the file I've listed some future improvements, but in its current state, it's very functional!

@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review August 23, 2024 20:00
src/node/coverage.ts Outdated Show resolved Hide resolved
src/node/coverage.ts Outdated Show resolved Hide resolved
src/node/coverage.ts Outdated Show resolved Hide resolved
src/node/coverage.ts Outdated Show resolved Hide resolved
src/node/coverage.ts Outdated Show resolved Hide resolved
const lineCoveredDecoration = window.createTextEditorDecorationType({
gutterIconPath: Icons.covered,
overviewRulerColor: Colors.covered,
isWholeLine: true,

Choose a reason for hiding this comment

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

curious on the design decision to have whole line highlights for covered vs. partial/misses

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

Successfully merging this pull request may close these issues.

2 participants