This repository was archived by the owner on Aug 14, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 3.89 KB
/
Copy pathpackage.json
File metadata and controls
144 lines (144 loc) · 3.89 KB
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
{
"name": "oh-alignment-tool",
"displayName": "openHAB Alignment Tool",
"version": "2.1.6",
"publisher": "max-beckenbauer",
"contributors": [
"Mark Hilbush"
],
"description": "Tool to format and indent openHAB files. At the moment only item and sitemap files can be formatted.",
"author": {
"name": "Maximilian Beckenbauer",
"email": "max.bec92@gmail.com",
"url": "https://github.com/MaxBec/openHAB-Alignment-Tool"
},
"categories": [
"Other",
"Formatters",
"Linters"
],
"icon": "images/logo.png",
"repository": {
"url": "https://github.com/MaxBec/openHAB-Alignment-Tool",
"type": "git"
},
"bugs": {
"url": "https://github.com/MaxBec/openHAB-Alignment-Tool/issues",
"email": "max.bec92@gmail.com"
},
"engines": {
"vscode": "^1.55.0"
},
"license": "EPL-2.0",
"activationEvents": [
"onLanguage:openhab"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.insert-item-generic",
"category": "openHAB Alignment",
"title": "Insert Item"
},
{
"command": "extension.insert-item-switch",
"category": "openHAB Alignment",
"title": "Insert Switch Item"
},
{
"command": "extension.insert-item-dimmer",
"category": "openHAB Alignment",
"title": "Insert Dimmer Item"
},
{
"command": "extension.insert-item-string",
"category": "openHAB Alignment",
"title": "Insert String Item"
},
{
"command": "extension.insert-item-number",
"category": "openHAB Alignment",
"title": "Insert Number Item"
},
{
"command": "extension.insert-item-datetime",
"category": "openHAB Alignment",
"title": "Insert DateTime Item"
},
{
"command": "extension.whatsNew",
"title": "%extension.commands.whatsNew.title%",
"category": "%extension.commands.category.bookmarks%"
},
{
"command": "_extension.whatsNewContextMenu",
"title": "%extension.commands.whatsNewContextMenu.title%"
}
],
"configuration": {
"type": "object",
"title": "openHAB Alignment Tool",
"properties": {
"oh-alignment-tool.preserveWhitespace": {
"type": "boolean",
"default": false,
"description": "Preserves any leading whitespace when reformatting an item."
},
"oh-alignment-tool.newLineAfterItem": {
"type": "boolean",
"default": false,
"description": "Choose if you want to have a new line inserted after each item."
},
"oh-alignment-tool.formatStyle": {
"type": "string",
"default": "Column",
"enum": [
"Column",
"ChannelColumn",
"Multiline"
],
"enumDescriptions": [
"Formats the files in a column-style. E.g. in an items file each item is one line separated by tabs.",
"Formats the files in a column-style with each channel parameter in a new line. E.g. in an items file each part of the channel configuration is written in a new line.",
"Formats the files in a multiline-style. E.g. in an items file each part of an item is written in a new line."
]
},
"oh-alignment-tool.minimumIndentAmount": {
"type": "number",
"default": 4,
"description": "Minimum separation of thing or item parts."
},
"oh-alignment-tool.enableBetaFeatures": {
"type": "boolean",
"default": false,
"description": "Enable beta features like sitemap formatting or thing file formatting."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"@types/semver": "^7.3.4",
"semver": "^7.3.5"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.41",
"@types/semver": "^7.3.4",
"@types/vscode": "^1.55.0",
"glob": "^7.1.6",
"mocha": "^8.3.2",
"semver": "^7.3.5",
"tslint": "^5.20.1",
"typescript": "^4.2.4",
"vscode-test": "^1.5.2"
}
}