-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
333 lines (333 loc) · 10.9 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
{
"name": "coc-toml",
"version": "1.2.5",
"description": "toml extension for coc.nvim",
"author": "kkiyama117 <[email protected]>",
"publisher": "kkiyama117 <[email protected]>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"toml"
],
"repository": {
"type": "git",
"url": "git+https://github.com/kkiyama117/coc-toml.git"
},
"bugs": {
"url": "https://github.com/kkiyama117/coc-toml/issues"
},
"engines": {
"coc": "^0.0.80"
},
"scripts": {
"build": "yarn --ignore-engines rollup --silent -c rollup.config.js",
"clean": "rimraf lib",
"prepare": "npm-run-all clean build",
"prettier:base": "prettier --parser typescript --single-quote",
"prettier": "yarn prettier:base --list-different \"src/**/*.ts\"",
"format": "yarn prettier:base --write \"src/**/*.ts\"",
"watch": "yarn build --watch"
},
"prettier": {
"singleQuote": true,
"printWidth": 80,
"semi": true
},
"dependencies": {
"@taplo/lsp": "^0.2.4",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-wasm": "^5.1.2",
"@types/node": "^17.0.19",
"@types/node-fetch": "^2.6.1",
"coc.nvim": "0.0.80",
"ini": ">=2.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.68.0",
"rollup-plugin-typescript2": "^0.31.2",
"ts-node": "^10.5.0",
"typescript": "^4.5.5",
"vscode-languageserver-types": "^3.16.0"
},
"activationEvents": [
"onLanguage:toml",
"onLanguage:cargoLock",
"onLanguage:config",
"onCommand:toml.tomlToJson",
"onCommand:toml.jsonToToml",
"onCommand:toml.syntaxTree",
"onCommand:toml.clearCache",
"onCommand:toml.downloadSchemas"
],
"contributes": {
"grammars": [
{
"language": "toml",
"scopeName": "source.toml",
"path": "./toml.tmLanguage.json"
}
],
"languages": [
{
"id": "toml",
"aliases": [
"TOML"
],
"extensions": [
".toml"
],
"filenames": [
"Cargo.lock"
],
"configuration": "./language-configuration.json"
}
],
"commands": [
{
"command": "toml.tomlToJson",
"title": "TOML: Show selection as JSON"
},
{
"command": "toml.clearCache",
"title": "TOML: Clear Cache"
},
{
"command": "toml.downloadSchemas",
"title": "TOML: Download All Schemas"
},
{
"command": "toml.debug.showSyntaxTree",
"title": "TOML (debug): Show Syntax Tree",
"enablement": "editorLangId == toml && config.evenBetterToml.debug"
}
],
"semanticTokenTypes": [
{
"id": "tomlArrayKey",
"superType": "variable",
"description": "Keys of regular arrays."
},
{
"id": "tomlTableKey",
"superType": "variable",
"description": "Keys of inline tables."
}
],
"semanticTokenScopes": [
{
"scopes": {
"tomlArrayKey": [
"variable.key.array.toml"
],
"tomlTableKey": [
"variable.key.table.toml"
]
}
}
],
"configuration": {
"title": "toml",
"properties": {
"toml.enabled": {
"description": "Whether to enable coc-toml or not",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.activationStatus": {
"description": "Show a status bar message while the extension is activating.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.taploConfig": {
"description": "An absolute, or workspace relative path to the Taplo configuration file.",
"type": "string",
"scope": "resource"
},
"toml.taploConfigEnabled": {
"description": "Whether to enable the usage of a Taplo configuration file.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.semanticTokens": {
"description": "Enable semantic tokens for inline table and array keys. If enabled, keys of arrays and inline tables will have the same color as table headers and array of tables headers.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.commands.clearCache": {
"description": "Show the \"Clear Cache\" command in the palette.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.commands.downloadSchemas": {
"description": "Show the \"Download All Schemas\" command in the palette.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.commands.copyTomlAsJson": {
"description": "Option only for run lsp correctly.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.commands.pasteTomlAsJson": {
"description": "Option only for run lsp correctly.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.commands.copyJsonAsToml": {
"description": "Option only for run lsp correctly.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.commands.pasteJsonAsToml": {
"description": "Option only for run lsp correctly.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.alignEntries": {
"description": "Align consecutive entries vertically.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.formatter.arrayTrailingComma": {
"description": "Append trailing commas for multi-line arrays.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.arrayAutoExpand": {
"description": "Expand arrays to multiple lines that exceed the maximum column width.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.arrayAutoCollapse": {
"description": "Collapse arrays that don't exceed the maximum column width and don't contain comments.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.compactArrays": {
"description": "Omit white space padding from single-line arrays.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.compactInlineTables": {
"description": "Omit white space padding from the start and end of inline tables.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.formatter.columnWidth": {
"description": "Maximum column width in characters, affects array expansion and collapse, this doesn't take whitespace into account.",
"type": "number",
"minimum": 0,
"default": 80
},
"toml.formatter.indentTables": {
"description": "Indent based on tables and arrays of tables and their subtables, subtables out of order are not indented.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.formatter.indentString": {
"description": "The substring that is used for indentation, should be tabs or spaces, but technically can be anything. Uses the IDE setting if not set.",
"type": [
"string",
"null"
],
"scope": "resource",
"default": " "
},
"toml.formatter.reorderKeys": {
"description": "Alphabetically reorder keys that are not separated by empty lines.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.formatter.allowedBlankLines": {
"description": "Maximum amount of allowed consecutive blank lines. This does not affect the whitespace at the end of the document, as it is always stripped.",
"type": "integer",
"scope": "resource",
"minimum": 0,
"default": 2
},
"toml.formatter.trailingNewline": {
"description": "Add trailing newline at the end of the file if not present.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.formatter.crlf": {
"description": "Use CRLF for line endings.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.schema.enabled": {
"description": "Enable completion and validation based on JSON schemas.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.schema.links": {
"description": "Enable editor links.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.schema.repositoryEnabled": {
"description": "Whether to use schemas from the provided schema repository.",
"type": "boolean",
"scope": "resource",
"default": true
},
"toml.schema.repositoryUrl": {
"description": "A HTTP(S) URL that points to a schema index.",
"type": "string",
"scope": "resource",
"default": "https://taplo.tamasfe.dev/schema_index.json"
},
"toml.schema.associations": {
"description": "Document and schema associations.",
"markdownDescription": "Document and schema associations. \n\n The key must be a regular expression, this pattern is used to associate schemas with absolute document URIs. On multiple matches the first one is used in an undefined order. \n\n The value must be an absolute URI to the JSON schema, for supported values and more information [read here](https://taplo.tamasfe.dev/configuration#visual-studio-code).",
"type": "object",
"scope": "resource",
"default": {
"^(.*(/|\\\\)\\.?taplo\\.toml|\\.?taplo\\.toml)$": "taplo://taplo.toml"
}
},
"toml.actions.ignoreDeprecatedAssociations": {
"description": "Whether to ignore deprecated builtin associations.",
"type": "boolean",
"scope": "resource",
"default": false
},
"toml.debug": {
"description": "Enable features to debug the extension.",
"type": "boolean",
"scope": "resource",
"default": false
}
}
}
}
}