-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
418 lines (418 loc) · 11.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
{
"publisher": "keith-gamble",
"name": "ignition-flint",
"displayName": "Flint for Ignition",
"description": "An extension to add convenience tools for working with Ignition in VS Code",
"icon": "images/assets/flint-icon.png",
"version": "0.0.1-SNAPSHOT",
"repository": {
"type": "git",
"url": "https://github.com/keith-gamble/ignition-flint"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/src/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Ignition Flint",
"properties": {
"ignitionFlint.showInheritedResources": {
"type": "boolean",
"default": false,
"description": "Show inherited resources in the Ignition Project Scripts view."
},
"ignitionFlint.sslVerify": {
"type": "boolean",
"default": true,
"description": "Whether to verify SSL certificates when making requests to Ignition Gateways."
},
"ignitionFlint.ignitionGateways": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "The label for the Ignition Gateway."
},
"address": {
"type": "string",
"description": "The address of the Ignition Gateway."
},
"projectPaths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Paths to the project folders for the Ignition Gateway."
},
"updateDesignerOnSave": {
"type": "boolean",
"default": true,
"description": "Whether to update the Designer on file save."
},
"forceUpdateDesigner": {
"type": "boolean",
"default": false,
"description": "Whether to force update the Designer."
},
"supportsProjectScanEndpoint": {
"type": "boolean",
"default": false,
"description": "Whether the gateway supports the project scan endpoint."
}
},
"required": [
"label",
"address",
"projectPaths",
"updateDesignerOnSave",
"forceUpdateDesigner",
"supportsProjectScanEndpoint"
]
},
"default": [],
"description": "Configuration for Ignition Gateways."
}
}
},
"clipboardWrite": true,
"filesystem": [
{
"scheme": "flint",
"authority": "file-filesystem-provider",
"isCaseSensitive": true,
"watcher": {
"globPattern": "**/*"
}
}
],
"commands": [
{
"command": "ignition-flint.edit-script-transform",
"title": "Edit Script Transform",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.edit-script-action",
"title": "Edit Script Action",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.edit-custom-method",
"title": "Edit Custom Method",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.edit-message-handler",
"title": "Edit Message Handler",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.edit-tag-event-script",
"title": "Edit Tag Event Script",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.edit-property-change-script",
"title": "Edit Property Change Script",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.open-with-kindling",
"category": "Ignition Flint",
"title": "Open with Kindling"
},
{
"command": "ignition-flint.paste-as-json",
"category": "Ignition Flint",
"title": "Paste as JSON"
},
{
"command": "ignition-flint.copy-script-object-path-to-clipboard",
"title": "Copy path",
"category": "Ignition Flint",
"icon": "$(clippy)"
},
{
"command": "ignition-flint.refresh-tree-view",
"title": "Refresh Ignition Projects",
"category": "Ignition Flint",
"icon": "$(refresh)"
},
{
"command": "ignition-flint.add-script-module",
"title": "Add Script Module",
"category": "Ignition Flint",
"icon": "$(new-file)"
},
{
"command": "ignition-flint.add-script-package",
"title": "Add Script Package",
"category": "Ignition Flint",
"icon": "$(new-folder)"
},
{
"command": "ignition-flint.delete-script-module",
"title": "Delete Resource",
"category": "Ignition Flint",
"icon": "$(trash)"
},
{
"command": "ignition-flint.rename-resource",
"title": "Rename Resource",
"category": "Ignition Flint",
"icon": "$(pencil)"
},
{
"command": "ignition-flint.openScriptResource",
"title": "Open Resource",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.openScriptResourceInNewTab",
"title": "Open Resource in New Tab",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.override-inherited-resource",
"title": "Override Inherited Resource",
"category": "Ignition Flint",
"icon": "$(replace)"
},
{
"command": "ignition-flint.discard-overridden-resource",
"title": "Discard Overridden Resource",
"category": "Ignition Flint",
"icon": "$(discard)"
},
{
"command": "ignition-flint.show-options",
"title": "Show Options",
"icon": "$(more)",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.toggle-inherited-resource-visibility",
"title": "Toggle Inherited Resource Visibility",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.navigate-to-element",
"title": "Navigate to Script Element",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.refreshGatewayView",
"title": "Refresh Ignition Gateways",
"category": "Ignition Flint",
"icon": "$(refresh)"
},
{
"command": "ignition-flint.identifyGateways",
"title": "Identify Ignition Gateways",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.requestProjectScan",
"title": "Request Project Scan",
"category": "Ignition Flint",
"icon": "$(sync)"
},
{
"command": "ignition-flint.openGatewayConfigPage",
"title": "Open Config Page",
"category": "Ignition Flint"
},
{
"command": "ignition-flint.openGatewayStatusPage",
"title": "Open Status Page",
"category": "Ignition Flint"
}
],
"menus": {
"editor/context": [
{
"command": "ignition-flint.edit-script-transform",
"group": "navigation",
"when": "ignition-flint:lineIsScriptTransform"
},
{
"command": "ignition-flint.edit-script-action",
"group": "navigation",
"when": "ignition-flint:lineIsScriptAction"
},
{
"command": "ignition-flint.edit-custom-method",
"group": "navigation",
"when": "ignition-flint:lineIsCustomMethod"
},
{
"command": "ignition-flint.edit-message-handler",
"group": "navigation",
"when": "ignition-flint:lineIsMessageHandler"
},
{
"command": "ignition-flint.edit-tag-event-script",
"group": "navigation",
"when": "ignition-flint:lineIsTagEventScript"
},
{
"command": "ignition-flint.edit-property-change-script",
"group": "navigation",
"when": "ignition-flint:lineIsPropertyChangeScript"
},
{
"command": "ignition-flint.paste-as-json",
"group": "clipboard",
"when": "editorTextFocus && !editorReadonly"
}
],
"explorer/context": [
{
"when": "resourceExtname == .gwbk",
"command": "ignition-flint.open-with-kindling",
"group": "navigation"
}
],
"view/title": [
{
"command": "ignition-flint.refresh-tree-view",
"when": "view == ignitionFileSystem",
"group": "navigation@+1",
"icon": "$(refresh)"
},
{
"command": "ignition-flint.show-options",
"when": "view == ignitionFileSystem",
"group": "navigation@+2"
},
{
"command": "ignition-flint.refreshGatewayView",
"when": "view == ignitionGateways",
"group": "navigation"
}
],
"view/item/context": [
{
"when": "view == ignitionFileSystem && (viewItem == scriptElementObject || viewItem == scriptObject)",
"command": "ignition-flint.copy-script-object-path-to-clipboard",
"group": "inline",
"icon": "$(clippy)"
},
{
"command": "ignition-flint.add-script-module",
"when": "view == ignitionFileSystem && (viewItem == projectObject || viewItem == folderObject)",
"group": "inline",
"icon": "$(new-file)"
},
{
"command": "ignition-flint.add-script-package",
"when": "view == ignitionFileSystem && (viewItem == projectObject || viewItem == folderObject)",
"group": "inline",
"icon": "$(new-folder)"
},
{
"command": "ignition-flint.delete-script-module",
"when": "view == ignitionFileSystem && (viewItem == scriptObject || viewItem == folderObject)",
"icon": "$(trash)"
},
{
"command": "ignition-flint.rename-resource",
"when": "view == ignitionFileSystem && (viewItem == scriptObject || viewItem == folderObject)",
"icon": "$(pencil)"
},
{
"command": "ignition-flint.openScriptResourceInNewTab",
"when": "view == ignitionFileSystem && viewItem == scriptObject",
"group": "navigation"
},
{
"command": "ignition-flint.navigate-to-element",
"when": "view == ignitionFileSystem",
"group": "navigation"
},
{
"command": "ignition-flint.requestProjectScan",
"when": "view == ignitionGateways && (viewItem == ignitionGateway.supportsProjectScanEndpoint)",
"group": "inline"
},
{
"command": "ignition-flint.openGatewayConfigPage",
"when": "view == ignitionGateways && (viewItem == ignitionGateway || viewItem == ignitionGateway.supportsProjectScanEndpoint)",
"group": "navigation"
},
{
"command": "ignition-flint.openGatewayStatusPage",
"when": "view == ignitionGateways && (viewItem == ignitionGateway || viewItem == ignitionGateway.supportsProjectScanEndpoint)",
"group": "navigation"
}
]
},
"views": {
"explorer": [
{
"id": "ignitionFileSystem",
"name": "Ignition Project Scripts",
"icon": "$(file-code)",
"contextualTitle": "Ignition Project Scripts"
},
{
"id": "ignitionGateways",
"name": "Ignition Gateways",
"icon": "$(server)",
"contextualTitle": "Ignition Gateways",
"when": "usingWorkspaceFile == true"
}
]
},
"viewsWelcome": [
{
"view": "ignitionFileSystem",
"contents": "No Ignition project scripts found in the current workspace."
},
{
"view": "ignitionGateways",
"contents": "No Ignition gateways configured."
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ignition-flint-explorer",
"title": "Ignition Flint",
"icon": "images/assets/flint-icon.png"
}
]
}
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.5.1",
"@types/mocha": "^10.0.0",
"@types/vscode": "^1.63.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.26.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"typescript": "^4.8.4"
},
"scripts": {
"compile": "tsc -p ./"
},
"dependencies": {
"axios": "^1.6.8",
"https": "^1.0.0",
"js-yaml": "^4.1.0",
"vscode-languageclient": "^9.0.1"
}
}