forked from KamasamaK/vscode-cfml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
517 lines (517 loc) · 16.4 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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
{
"name": "vscode-cfml",
"displayName": "CFML",
"description": "CFML language",
"version": "0.5.3",
"preview": true,
"author": "KamasamaK",
"publisher": "KamasamaK",
"license": "MIT",
"engines": {
"vscode": "^1.31.0"
},
"repository": {
"type": "git",
"url": "https://github.com/KamasamaK/vscode-cfml.git"
},
"bugs": {
"url": "https://github.com/KamasamaK/vscode-cfml/issues"
},
"categories": [
"Programming Languages"
],
"keywords": [
"cfml",
"coldfusion",
"lucee"
],
"activationEvents": [
"onLanguage:cfml",
"workspaceContains:**/*.cfm",
"workspaceContains:**/*.cfml",
"workspaceContains:**/*.cfc"
],
"icon": "images/icon.png",
"main": "./out/cfmlMain",
"contributes": {
"languages": [
{
"id": "cfml",
"aliases": [
"CFML",
"cfml"
],
"extensions": [
".cfml",
".cfm",
".cfc"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "cfml",
"scopeName": "embedding.cfml",
"path": "./syntaxes/cfml.tmLanguage.json",
"embeddedLanguages": {
"source.css": "css",
"meta.embedded.block.css": "css",
"source.js": "javascript",
"meta.embedded.block.js": "javascript",
"meta.embedded.line.js": "javascript",
"source.sql": "sql",
"meta.embedded.block.sql": "sql",
"meta.tag.cfml": "cfml",
"constant.character.escape.hash.cfml": "cfml",
"punctuation.definition.template-expression.begin.cfml": "cfml",
"meta.embedded.line.cfml": "cfml",
"meta.embedded.block.cfml": "cfml",
"punctuation.definition.template-expression.end.cfml": "cfml"
}
}
],
"configuration": {
"type": "object",
"title": "CFML Configuration",
"properties": {
"cfml.globalDefinitions.source": {
"type": "string",
"description": "The source of the global definitions.",
"enum": [
"cfdocs"
],
"default": "cfdocs",
"scope": "window"
},
"cfml.cfDocs.source": {
"type": "string",
"description": "Indicates the source location type to be used for CFDocs. Remote is GitHub repo. Local is based on cfml.cfDocs.localPath.",
"markdownDescription": "Indicates the source location type to be used for CFDocs. Remote is GitHub repo. Local is based on `cfml.cfDocs.localPath`.",
"enum": [
"remote",
"local"
],
"enumDescriptions": [
"Retrieve resources remotely from GitHub.",
"Retrieve resources locally using cfml.cfDocs.localPath."
],
"markdownEnumDescription": [
"Retrieve resources remotely from GitHub.",
"Retrieve resources locally using `cfml.cfDocs.localPath`."
],
"default": "remote",
"scope": "window"
},
"cfml.cfDocs.localPath": {
"type": [
"string",
"null"
],
"description": "Physical path to the data directory of CFDocs.",
"default": null,
"scope": "window"
},
"cfml.hover.enable": {
"type": "boolean",
"description": "Whether hover is enabled for CFML entities.",
"default": true,
"scope": "resource"
},
"cfml.hover.html.enable": {
"type": "boolean",
"description": "Whether hover is enabled for HTML entities.",
"default": true,
"scope": "resource"
},
"cfml.hover.css.enable": {
"type": "boolean",
"description": "Whether hover is enabled for CSS entities.",
"default": true,
"scope": "resource"
},
"cfml.signature.enable": {
"type": "boolean",
"description": "Whether signature help is enabled.",
"default": true,
"scope": "resource"
},
"cfml.suggest.enable": {
"type": "boolean",
"description": "Whether completion help is enabled.",
"default": true,
"scope": "resource"
},
"cfml.suggest.snippets.enable": {
"type": "boolean",
"description": "Whether snippets are part of completion help.",
"default": true,
"scope": "resource"
},
"cfml.suggest.snippets.exclude": {
"type": "array",
"description": "Set of snippet keys you would like excluded from suggestions.",
"items": {
"type": "string"
},
"default": [],
"scope": "resource"
},
"cfml.suggest.globalFunctions.enable": {
"type": "boolean",
"description": "Whether global functions are part of completion help.",
"default": true,
"scope": "resource"
},
"cfml.suggest.globalFunctions.firstLetterCase": {
"type": "string",
"description": "What case should be used for the first letter of global function suggestions.",
"enum": [
"unchanged",
"lower",
"upper"
],
"enumDescriptions": [
"Leaves the name unchanged from source",
"Lowercases the first letter",
"Uppercases the first letter"
],
"default": "default",
"scope": "resource"
},
"cfml.suggest.globalTags.enable": {
"type": "boolean",
"description": "Whether global tags are part of completion help.",
"default": true,
"scope": "resource"
},
"cfml.suggest.globalTags.attributes.quoteType": {
"type": "string",
"enum": [
"none",
"double",
"single"
],
"enumDescriptions": [
"Adds no quotes for attribute value",
"Adds two double quotes for attribute value",
"Adds two single quotes for attribute value"
],
"default": "double",
"description": "Which quote type to use when completing attribute suggestion.",
"scope": "resource"
},
"cfml.suggest.globalTags.attributes.defaultValue": {
"type": "boolean",
"description": "Whether to populate the default value for an attribute if it has one.",
"default": false,
"scope": "resource"
},
"cfml.suggest.globalTags.includeAttributes.setType": {
"type": "string",
"description": "What set of attributes to include when global tag suggestion is selected",
"default": "none",
"enum": [
"none",
"required",
"all"
],
"enumDescriptions": [
"Adds no attributes on completion of global tags",
"Adds required attributes on completion of global tags",
"Adds all attributes on completion of global tags"
],
"scope": "resource"
},
"cfml.suggest.globalTags.includeAttributes.custom": {
"type": "object",
"description": "A custom set of attributes to include for given tags when suggestion is selected. This setting overrides the set type.",
"default": {},
"patternProperties": {
"^cf[a-z0-9_]+$": {
"description": "The tag name and its attribute overrides",
"type": "array",
"minItems": 0,
"items": {
"title": "Attribute",
"description": "The attribute information",
"type": "object",
"properties": {
"name": {
"title": "Attribute name",
"description": "The name of the attribute to include",
"type": "string"
},
"value": {
"title": "Attribute value",
"description": "The default value of the attribute",
"type": "string",
"default": ""
}
},
"required": [
"name"
]
},
"default": []
}
},
"additionalProperties": false,
"scope": "resource"
},
"cfml.suggest.htmlTags.enable": {
"type": "boolean",
"description": "Whether HTML tags are part of completion help.",
"default": true,
"scope": "resource"
},
"cfml.suggest.htmlTags.attributes.quoteType": {
"type": "string",
"enum": [
"none",
"double",
"single"
],
"enumDescriptions": [
"Adds no quotes for attribute value",
"Adds two double quotes for attribute value",
"Adds two single quotes for attribute value"
],
"default": "double",
"description": "Which quote type to use when completing attribute suggestion.",
"scope": "resource"
},
"cfml.suggest.css.enable": {
"type": "boolean",
"description": "Whether CSS properties and values are part of completion help.",
"default": true,
"scope": "resource"
},
"cfml.definition.enable": {
"type": "boolean",
"description": "Whether providing definitions is enabled.",
"default": true,
"scope": "resource"
},
"cfml.definition.userFunctions.search.enable": {
"type": "boolean",
"description": "Whether to search for matching functions throughout the workspace when a reliable match cannot be determined.",
"default": false,
"scope": "resource"
},
"cfml.indexComponents.enable": {
"type": "boolean",
"description": "Whether to index all components in workspace. This is done on each startup and is required for multiple features to work properly.",
"default": true,
"scope": "window"
},
"cfml.autoCloseTags.enable": {
"type": "boolean",
"markdownDescription": "Whether to enable auto-closing tags for CFML. This uses the third-party extension `auto-close-tag`. This is only checked and set on startup.",
"default": true,
"scope": "window"
},
"cfml.autoCloseTags.configurationTarget": {
"type": "string",
"description": "Auto-configuration target for auto-closing tags.",
"enum": [
"Global",
"Workspace"
],
"default": "Global",
"scope": "window"
},
"cfml.docBlock.gap": {
"type": "boolean",
"default": true,
"description": "Whether there should be a gap between the hint and other tags in a docblock",
"scope": "resource"
},
"cfml.docBlock.extra": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the tag"
},
"default": {
"type": "string",
"default": "",
"description": "The default value for the tag"
},
"types": {
"type": "array",
"description": "The types of structures to which this tag will be applied",
"items": {
"type": "string",
"enum": [
"component",
"function",
"property",
"interface"
]
}
}
},
"required": [
"name"
]
},
"description": "Extra tags you wish to include in every DocBlock",
"scope": "resource"
},
"cfml.engine.name": {
"type": "string",
"description": "Name of the CFML engine against which to filter.",
"enum": [
"coldfusion",
"lucee",
"railo",
"openbd"
],
"scope": "window"
},
"cfml.engine.version": {
"type": "string",
"pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)(\\.(0|[1-9]\\d*))?)?)?$",
"description": "Version of the CFML engine against which to filter. SemVer format is preferred.",
"scope": "window"
},
"cfml.mappings": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"logicalPath": {
"type": "string",
"default": "",
"description": "The name of the tag"
},
"directoryPath": {
"type": "string",
"default": "",
"description": "The default value for the tag"
},
"isPhysicalDirectoryPath": {
"type": "boolean",
"default": true,
"description": "Whether directoryPath refers to a physical path or one relative to the workspace root"
}
},
"required": [
"logicalPath",
"directoryPath"
]
},
"description": "Represents CFML mappings from logicalPath to directoryPath.",
"scope": "resource"
}
}
},
"configurationDefaults": {
"[cfml]": {
"editor.suggest.snippetsPreventQuickSuggestions": false
}
},
"commands": [
{
"command": "cfml.refreshGlobalDefinitionCache",
"category": "CFML",
"title": "Refresh cache for global definitions"
},
{
"command": "cfml.refreshWorkspaceDefinitionCache",
"category": "CFML",
"title": "Refresh cache for workspace definitions"
},
{
"command": "cfml.toggleLineComment",
"category": "CFML",
"title": "Toggle CFML line comment"
},
{
"command": "cfml.toggleBlockComment",
"category": "CFML",
"title": "Toggle CFML block comment"
},
{
"command": "cfml.openActiveApplicationFile",
"category": "CFML",
"title": "Open Application file for currently active document"
},
{
"command": "cfml.goToMatchingTag",
"category": "CFML",
"title": "Go to Matching Tag"
},
{
"command": "cfml.openCfDocs",
"category": "CFML",
"title": "Open CFDocs page"
},
{
"command": "cfml.openEngineDocs",
"category": "CFML",
"title": "Open CFML engine docs page"
},
{
"command": "cfml.foldAllFunctions",
"category": "CFML",
"title": "Fold all functions in active editor"
}
],
"keybindings": [
{
"command": "cfml.toggleLineComment",
"key": "ctrl+/",
"mac": "cmd+/",
"when": "editorTextFocus && !editorReadonly && editorLangId == cfml"
},
{
"command": "cfml.toggleBlockComment",
"key": "shift+alt+a",
"mac": "shift+alt+a",
"when": "editorTextFocus && !editorReadonly && editorLangId == cfml"
}
],
"jsonValidation": [
{
"fileMatch": "server*.json",
"url": "./resources/schemas/server.schema.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "tslint src/*.ts -t verbose"
},
"dependencies": {
"@octokit/rest": "~16.15.0",
"findup-sync": "2.0.0",
"html-entities": "~1.2.1",
"request": "~2.88.0",
"semver": "^5.5.1",
"trie-prefix-tree": "1.5.0",
"vscode-css-languageservice": "3.0.13-next.12",
"vscode-html-languageservice": "2.1.11-next.11"
},
"devDependencies": {
"@types/findup-sync": "2.0.0",
"@types/html-entities": "~1.2.16",
"@types/mocha": "~5.2.5",
"@types/node": "~10.3.6",
"@types/request": "~2.48.1",
"@types/semver": "~5.5.0",
"mocha": "~5.2.0",
"tslint": "^5.12.1",
"typescript": "^3.3.1",
"vscode": "^1.1.29"
}
}