-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.json
91 lines (84 loc) · 2.43 KB
/
extension.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
{
"identifier": "com.tommasonegri.htmlbeautifier",
"name": "HTML Beautifier",
"organization": "Tommaso Negri",
"description": "A normaliser/beautifier for HTML that also understands embedded Ruby.",
"version": "1.0",
"categories": ["formatters"],
"license": "MIT",
"repository": "https://github.com/nova-ruby/htmlbeautifier",
"bugs": "https://github.com/nova-ruby/htmlbeautifier/issues",
"funding": "https://www.paypal.com/paypalme/tommasonegri/25EUR",
"main": "main.js",
"activationEvents": [
"onLanguage:html+erb",
"onWorkspaceContains:*.erb"
],
"entitlements": {
"process": true
},
"commands": {
"editor": [
{
"title": "Format Document",
"command": "tommasonegri.htmlbeautifier.format",
"when": "editorHasFocus && editorHasSelection && editorSyntax == 'html+erb'"
},
{
"title": "Save Without Formatting",
"command": "tommasonegri.htmlbeautifier.saveWithoutFormatting",
"when": "editorHasFocus && editorHasSelection && editorSyntax == 'html+erb'"
}
]
},
"config": [
{
"key": "tommasonegri.htmlbeautifier.commandPath",
"title": "Command Path",
"description": "Path to the HTML Beautifier command. Set this to an absolute path to select from multiple installed Ruby versions.",
"type": "path",
"default": "htmlbeautifier"
},
{
"key": "tommasonegri.htmlbeautifier.formatOnSave",
"title": "Format on Save",
"description": "Enable the format on save behavior.",
"type": "boolean",
"default": true
},
{
"key": "tommasonegri.htmlbeautifier.keepBlankLines",
"title": "Allowed Blank Lines",
"description": "Set the number of allowed consecutive blank lines.",
"type": "number",
"default": 0
}
],
"configWorkspace": [
{
"key": "tommasonegri.htmlbeautifier.commandPath",
"title": "Command Path",
"description": "Path to the HTML Beautifier command. Set this to an absolute path to select from multiple installed Ruby versions.",
"type": "path"
},
{
"key": "tommasonegri.htmlbeautifier.formatOnSave",
"title": "Format on save",
"description": "Enable the format on save behavior.",
"type": "enum",
"values": [
["", "Global default"],
["false", "Disabled"],
["true", "Enabled"]
],
"radio": false,
"default": ""
},
{
"key": "tommasonegri.htmlbeautifier.keepBlankLines",
"title": "Allowed Blank Lines",
"description": "Set the number of allowed consecutive blank lines.",
"type": "number"
}
]
}