-
Notifications
You must be signed in to change notification settings - Fork 350
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 option to allow for a generated code comment #531
Comments
@adayNU yep, that sounds like a good idea; a PR would be great! |
It could even be there by default. It's a comment so it will be stripped in most cases by webpack anyway. |
Yep, good point / +1 to a hard-coded value. We could someday have like a |
I think this might be a nice feature to add. We could include additional information, like how the // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v4.22.2
// source: foo.proto |
Better late than never :-) thank you @dasco144 ! 🎉 |
We'd like for GH / Reviewable to understand these files are generated. Would you be open to adding a flag like:
--ts_proto_opt=header=true
Which would prepend something like
// Code generated by protoc-gen-ts. DO NOT EDIT.
to the first line of every file.If this seems reasonable, I'd be happy to implement.
The text was updated successfully, but these errors were encountered: