Skip to content

Does Package name work? #39

@cajameslu

Description

@cajameslu

Hi, this is nice plugin, but I wasn't able to make it work if the package name is Java style, like com.example.demo in the proto file. In sendgRPCRequest.ts, it tries to check if the grpcObject has a property of packageName {grpcObject.hasOwnProperty(protoPackage)}. This seems does not work on dot separated package name. I printed the grpcObject in jason format, it looks like below. So it won't have com.example.demo property, instead it has com, then example, then demo, etc.

{"com":{"example":{"demo":{"Name":{"format":"Protocol Buffer 3 DescriptorProto","type":{"field":[

However I'm not sure if there's an issue or I didn't use it correctly. Let me know your opinion.

Thanks!
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions