Grpc-dotnet: Syntax support in VS and VS Code

Created on 7 Jan 2019  路  5Comments  路  Source: grpc/grpc-dotnet

Determine if we want to add official grammar and syntax support for VS and VS Code in addition to the third party extensions currently available.

Most helpful comment

VS is shipping support for proto grammar in VS 2019 Update 16.1.

All 5 comments

I assume you mean syntax support for .proto files?
It would be good to list the existing third-party extensions you had in mind here.
Also, I'm not sure if there are any grpc-specific features that would be useful or if .proto syntax support would be sufficient.

Correct I'm referring to the .proto file syntax and grammar. Currently I'm using https://github.com/zxh0/vscode-proto3 for vscode and https://github.com/mreu/ProtobufLanguageService for full vs. They provide syntax support but I haven't seen any autocomplete (of message names) or intellisense (go to definition) like capabilities.

Please don't forget about imported .proto files.

We break up our protos into multiple files and import them into a root file to keep things organized. But it makes it hard on the tooling which mostly assumes that all the messages are defined in a single file.

I can provide examples if this is confusing.

VS is shipping support for proto grammar in VS 2019 Update 16.1.

@JunTaoLuo, can you please explain here or point somewhere on how to enable intellisense support for .proto files in Visual Studio 2019?

I am currently using VS 2019 16.3.0 Preview 4.0 and the highlighting seems fine (except for rpc within services - no colors there), but no auto-completion pops up :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesNK picture JamesNK  路  3Comments

RiccoYuan picture RiccoYuan  路  4Comments

davidfowl picture davidfowl  路  6Comments

heartacker picture heartacker  路  3Comments

ChristianRiedl picture ChristianRiedl  路  5Comments