Add a protobuf item template (#10125)

This commit is contained in:
John Luo 2019-05-14 20:55:26 -07:00 committed by GitHub
parent 47575a08a5
commit 20fcbf1f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"$schema": "http://json.schemastore.org/dotnetcli.host"
}

View File

@ -0,0 +1,44 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [
"Web",
"gRPC"
],
"name": "Protocol Buffer File",
"generatorVersions": "[1.0.0.0-*)",
"description": "A protocol buffer file for describing messages and services for gRPC.",
"tags": {
"language": "",
"type": "item"
},
"groupIdentity": "Microsoft.Web.Grpc.Protobuf",
"precedence": "100",
"identity": "Microsoft.Web.Grpc.Protobuf",
"shortname": "proto",
"sourceName": "protobuf",
"primaryOutputs": [
{
"path": "protobuf.proto"
}
],
"defaultName": "protobuf",
"symbols": {
"HostIdentifier": {
"type": "bind",
"binding": "HostIdentifier"
}
},
"postActions": [
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"description": "Opens protobuf.proto in the editor",
"manualInstructions": [],
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
"args": {
"files": "0"
},
"continueOnError": true
}
]
}

View File

@ -0,0 +1 @@
syntax = "proto3";