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

Add support for passing group context to silenceMessage #37

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

lennym
Copy link
Contributor

@lennym lennym commented Mar 16, 2023

If a message is contained within a console.group or console.groupCollapsed call then track this context and provide to implementations of silenceMessage.

Because groups can be recursively nested, track both the parent group and the full group stack.

Copy link
Owner

@ValentinH ValentinH left a comment

Choose a reason for hiding this comment

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

Thanks for even increasing the test coverage! 🙏

@ValentinH
Copy link
Owner

One test is failing though.

If a message is contained within a `console.group` or `console.groupCollapsed` call then track this context and provide to implementations of `silenceMessage`.

Because groups can be recursively nested, track both the parent group and the full group stack.
@lennym
Copy link
Contributor Author

lennym commented Mar 16, 2023

I forgot to add the files! 🤦

Should be ok now.

@ValentinH ValentinH merged commit 8cd4b92 into ValentinH:main Mar 16, 2023
@ValentinH
Copy link
Owner

Thanks for this contribution. I'll publish the new version as soon as I'm on the computer.

@lennym
Copy link
Contributor Author

lennym commented Mar 16, 2023

Fantastic! Thank you so much for your help.

@ValentinH
Copy link
Owner

@lennym lennym deleted the lennym/add-group-context branch March 17, 2023 09:26
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