-
Notifications
You must be signed in to change notification settings - Fork 185
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
Comments from .proto files should move over to dart #161
Comments
I think this should be true of all comments. |
With gRPC this would be very helpful to copy all the comments from rpc methods into the dart code! |
Is this still considered for implementation? We are struggling with the comments not being transferred to the Dart output as well. |
It would be awesome to support I agree. Currently we don't have a lot of resources, so don't expect it to happen soon. |
Any news on this? |
This would be a very useful feature. I'll offer a use case I have: I generate the Selector class from the .proto file, and it's part of my package's public API. Unfortunately, I cannot add doc comments to it, because well... it's generated. Result: users of my package don't have docs when they hover over the Tagging @sigurdm – I've seen you're activate on Dart related repos on |
Unfortunately I no longer work on the dart-protobuf project. I did start looking into this long time ago, and all the information is there in the descriptors, but there are quite some details in converting them to useful dartdoc comments - and also questions about how it should be configured. I never got very far. I still think it would be really nice to have though. |
Sure, I understand. If Google can't do this because it's not an important issue for you... is this repository accepting contributions? |
I will defer to @osa1 who is working in this now. |
I'd LOVE to have this, too. |
Fixes #161 --------- Co-authored-by: Ömer Sinan Ağacan <omersa@google.com>
Wow, awesome! Thanks @kevmoo! |
There is some more work we could do here. Like making the comment references to other types work. Let's file separate issues for those. |
Given this enum defined in a proto file:
Then this plugin currently generates:
However, it should generate:
The text was updated successfully, but these errors were encountered: