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: Allow comments to be omitted #989

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

haines
Copy link
Contributor

@haines haines commented Jan 22, 2024

We ship generated code as part of a package, but it's an internal implementation detail so the comments that get copied from the proto files are just wasted bytes.

This adds a comments option which defaults to true (maintaining the current behaviour), but may be set to false to omit comments from the generated code.

Copy link
Owner

@stephenh stephenh left a comment

Choose a reason for hiding this comment

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

Looks great @haines , thank you!

@stephenh stephenh merged commit cb7eef7 into stephenh:main Jan 22, 2024
6 checks passed
stephenh pushed a commit that referenced this pull request Jan 22, 2024
# [1.167.0](v1.166.4...v1.167.0) (2024-01-22)

### Features

* Allow comments to be omitted ([#989](#989)) ([cb7eef7](cb7eef7))
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.167.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@haines haines deleted the disable-comments branch January 23, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants