Skip to content

Commit 6c9fa08

Browse files
authored
Include title in telemetry commands (#6800)
1 parent 08bc94b commit 6c9fa08

File tree

15 files changed

+193
-17
lines changed

15 files changed

+193
-17
lines changed

src/Bicep.Core.Samples/Files/Completions/declarations.json

Lines changed: 110 additions & 0 deletions
Large diffs are not rendered by default.

src/Bicep.Core.Samples/Files/Completions/moduleObject.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@
8585
"newText": "{\n\t$0\n}"
8686
},
8787
"command": {
88+
"title": "module body completion snippet",
8889
"command": "bicep.Telemetry",
8990
"arguments": [
9091
{
92+
"EventName": "snippet/modulebody",
9193
"Properties": {
9294
"name": "{}"
93-
},
94-
"EventName": "snippet/modulebody"
95+
}
9596
}
9697
]
9798
}

src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleBodyCompletions.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@
8585
"newText": "{\n\tname: $1\n\tparams: {\n\t\tarrayParam: $2\n\t\tobjParam: {\n\t\t}\n\t\tstringParamB: $3\n\t}\n}$0"
8686
},
8787
"command": {
88+
"title": "module body completion snippet",
8889
"command": "bicep.Telemetry",
8990
"arguments": [
9091
{
92+
"EventName": "snippet/modulebody",
9193
"Properties": {
9294
"name": "required-properties"
93-
},
94-
"EventName": "snippet/modulebody"
95+
}
9596
}
9697
]
9798
}
@@ -114,13 +115,14 @@
114115
"newText": "{\n\t$0\n}"
115116
},
116117
"command": {
118+
"title": "module body completion snippet",
117119
"command": "bicep.Telemetry",
118120
"arguments": [
119121
{
122+
"EventName": "snippet/modulebody",
120123
"Properties": {
121124
"name": "{}"
122-
},
123-
"EventName": "snippet/modulebody"
125+
}
124126
}
125127
]
126128
}

src/Bicep.Core.Samples/Files/InvalidOutputs_CRLF/Completions/objectPlusSymbols.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@
13411341
"newText": "{\n\t$0\n}"
13421342
},
13431343
"command": {
1344+
"title": "object body completion snippet",
13441345
"command": "bicep.Telemetry",
13451346
"arguments": [
13461347
{

src/Bicep.Core.Samples/Files/InvalidParameters_LF/Completions/objectPlusSymbols.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,7 @@
21062106
"newText": "{\n\t$0\n}"
21072107
},
21082108
"command": {
2109+
"title": "object body completion snippet",
21092110
"command": "bicep.Telemetry",
21102111
"arguments": [
21112112
{

src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/deploymentScriptTopLevel.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"newText": "resource ${1:Identifier} '${2:Type}' = {\n name: $3\n properties: {\n $0\n }\n}"
104104
},
105105
"command": {
106+
"title": "nested resource declaration completion snippet",
106107
"command": "bicep.Telemetry",
107108
"arguments": [
108109
{
@@ -132,6 +133,7 @@
132133
"newText": "resource ${1:Identifier} '${2:Type}' = {\n name: $3\n $0\n}"
133134
},
134135
"command": {
136+
"title": "nested resource declaration completion snippet",
135137
"command": "bicep.Telemetry",
136138
"arguments": [
137139
{

src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/discriminatorProperty.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"newText": "resource ${1:Identifier} '${2:Type}' = {\n name: $3\n properties: {\n $0\n }\n}"
5050
},
5151
"command": {
52+
"title": "nested resource declaration completion snippet",
5253
"command": "bicep.Telemetry",
5354
"arguments": [
5455
{
@@ -78,6 +79,7 @@
7879
"newText": "resource ${1:Identifier} '${2:Type}' = {\n name: $3\n $0\n}"
7980
},
8081
"command": {
82+
"title": "nested resource declaration completion snippet",
8183
"command": "bicep.Telemetry",
8284
"arguments": [
8385
{

src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusFor.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"newText": "{\n\tname: $1\n\tlocation: $2\n}$0"
8686
},
8787
"command": {
88+
"title": "resource body completion snippet",
8889
"command": "bicep.Telemetry",
8990
"arguments": [
9091
{
@@ -115,6 +116,7 @@
115116
"newText": "{\n name: ${1:'name'}\n location: ${2:location}\n}\n"
116117
},
117118
"command": {
119+
"title": "resource body completion snippet",
118120
"command": "bicep.Telemetry",
119121
"arguments": [
120122
{
@@ -145,6 +147,7 @@
145147
"newText": "{\n\t$0\n}"
146148
},
147149
"command": {
150+
"title": "resource body completion snippet",
148151
"command": "bicep.Telemetry",
149152
"arguments": [
150153
{

src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbols.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5936,6 +5936,7 @@
59365936
"newText": "{\n\t$0\n}"
59375937
},
59385938
"command": {
5939+
"title": "object body completion snippet",
59395940
"command": "bicep.Telemetry",
59405941
"arguments": [
59415942
{

src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbolsWithRequiredProperties.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,6 +4519,7 @@
45194519
"newText": "{\n\tname: $1\n}$0"
45204520
},
45214521
"command": {
4522+
"title": "object body completion snippet",
45224523
"command": "bicep.Telemetry",
45234524
"arguments": [
45244525
{
@@ -5965,6 +5966,7 @@
59655966
"newText": "{\n\t$0\n}"
59665967
},
59675968
"command": {
5969+
"title": "object body completion snippet",
59685970
"command": "bicep.Telemetry",
59695971
"arguments": [
59705972
{

0 commit comments

Comments
 (0)