grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.45k stars 761 forks source link

VSCode intellisense hinting not working in example project #1380

Closed ratwizzard closed 6 months ago

ratwizzard commented 8 months ago

When I open up the helloworld example in my IDE (vscode) and I edit client.js for some reason I am not seeing any code hints, e.g when I delete the streamRequest.setCount(5); line and I start typing streamRequest. I cannot see the setCount method in the list of options:

image

Is there some way this can be enabled?

sampajano commented 8 months ago

@ratwizzard Hi :)

I think editor hint would only work after you've generated the API stubs following this step: https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld#generate-protobuf-messages-and-client-service-stub

I wonder if that's something you've already done?

sampajano commented 6 months ago

Closing for now. Feel free to reopen if you still have questions :)