-
Notifications
You must be signed in to change notification settings - Fork 254
Expand file tree
/
Copy pathpackage.json
More file actions
356 lines (356 loc) · 11.8 KB
/
package.json
File metadata and controls
356 lines (356 loc) · 11.8 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
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
{
"name": "vscode-yaml",
"displayName": "YAML",
"description": "YAML Language Support by Red Hat, with built-in Kubernetes syntax support",
"author": "Red Hat",
"l10n": "./dist/l10n",
"contributors": [
{
"name": "Joshua Pinkney",
"email": "jpinkney@redhat.com"
},
{
"name": "Yevhen Vydolob",
"email": "yvydolob@redhat.com"
}
],
"license": "MIT",
"version": "1.22.0",
"publisher": "redhat",
"bugs": "https://github.com/redhat-developer/vscode-yaml/issues",
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/vscode-yaml"
},
"icon": "icon/icon128.png",
"engines": {
"npm": ">=7.0.0",
"vscode": "^1.63.0"
},
"categories": [
"Programming Languages",
"Linters",
"Snippets",
"Formatters"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"activationEvents": [
"onLanguage:yaml",
"onLanguage:yaml-textmate",
"onLanguage:yaml-tmlanguage",
"onLanguage:ansible",
"onLanguage:azure-pipelines",
"onLanguage:dockercompose",
"onLanguage:github-actions-workflow",
"onLanguage:home-assistant",
"onLanguage:manifest-yaml",
"onLanguage:spring-boot-properties-yaml"
],
"keywords": [
"kubernetes",
"yaml",
"autocompletion",
"validation"
],
"main": "./dist/extension",
"browser": "./dist/extension-web",
"contributes": {
"languages": [
{
"id": "yaml",
"aliases": [
"YAML",
"yaml"
],
"extensions": [
".yml",
".eyaml",
".eyml",
".yaml"
],
"filenames": [
".clang-format",
"_clang-format",
".clang-tidy"
],
"firstLine": "^#cloud-config",
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "yaml",
"scopeName": "source.yaml",
"path": "./syntaxes/yaml.tmLanguage.json"
}
],
"configuration": {
"title:": "YAML",
"properties": {
"redhat.telemetry.enabled": {
"type": "boolean",
"default": null,
"markdownDescription": "Enable usage data and errors to be sent to Red Hat servers. Read our [privacy statement](https://developers.redhat.com/article/tool-data-collection).",
"scope": "window",
"tags": [
"telemetry",
"usesOnlineServices"
]
},
"yaml.yamlVersion": {
"type": "string",
"default": "1.2",
"enum": [
"1.1",
"1.2"
],
"markdownDescription": "Default YAML spec version"
},
"yaml.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the YAML language service."
},
"yaml.schemas": {
"type": "object",
"default": {},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern or list of glob patterns specifying which files the schema should be used on"
},
"markdownDescription": "Associate schemas to YAML files in the current workspace. The expected value of this configuration option is a string to string map:\n- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern or list of glob patterns specifying which files the schema should be used on"
},
"yaml.kubernetesCRDStore.enable": {
"type": "boolean",
"description": "Enable/disable validation of Kubernetes custom resources using schemas from well-known Custom Resource Definitions (CRDs)",
"default": true
},
"yaml.kubernetesCRDStore.url": {
"type": "string",
"description": "The base URL for fetching well-known Custom Resource Definition (CRD) schemas",
"default": "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main"
},
"yaml.format.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable default YAML formatter",
"scope": "language-overridable"
},
"yaml.format.singleQuote": {
"type": "boolean",
"default": false,
"description": "Use single quotes instead of double quotes"
},
"yaml.format.bracketSpacing": {
"type": "boolean",
"default": true,
"description": "Print spaces between brackets in objects"
},
"yaml.format.proseWrap": {
"type": "string",
"default": "preserve",
"enum": [
"preserve",
"never",
"always"
],
"description": "Always: wrap prose if it exceeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is"
},
"yaml.format.printWidth": {
"type": "integer",
"default": 80,
"description": "Specify the line length that the printer will wrap on"
},
"yaml.format.trailingComma": {
"type": "boolean",
"default": true,
"description": "Specify if trailing commas should be used in JSON-like segments of the YAML"
},
"yaml.validate": {
"type": "boolean",
"default": true,
"description": "Enable/disable validation feature",
"scope": "language-overridable"
},
"yaml.hover": {
"type": "boolean",
"default": true,
"description": "Enable/disable hover feature"
},
"yaml.hoverAnchor": {
"type": "boolean",
"default": true,
"description": "Enable/disable hover feature for anchors"
},
"yaml.completion": {
"type": "boolean",
"default": true,
"description": "Enable/disable completion feature"
},
"yaml.customTags": {
"type": "array",
"default": [],
"description": "Custom tags for the parser to use"
},
"yaml.schemaStore.enable": {
"type": "boolean",
"default": true,
"description": "Automatically pull available YAML schemas from JSON Schema Store"
},
"yaml.schemaStore.url": {
"type": "string",
"default": "https://www.schemastore.org/api/json/catalog.json",
"description": "URL of schema store catalog to use"
},
"yaml.disableAdditionalProperties": {
"type": "boolean",
"default": false,
"description": "Globally set additionalProperties to false for all objects. So if its true, no extra properties are allowed inside yaml."
},
"yaml.disableDefaultProperties": {
"type": "boolean",
"default": false,
"description": "Disable adding not required properties with default values into completion text."
},
"yaml.maxItemsComputed": {
"type": "integer",
"default": 5000,
"description": "The maximum number of outline symbols and folding regions computed (limited for performance reasons)."
},
"yaml.suggest.parentSkeletonSelectedFirst": {
"type": "boolean",
"default": false,
"description": "If true, the user must select some parent skeleton first before autocompletion starts to suggest the rest of the properties. When yaml object is not empty, autocompletion ignores this setting and returns all properties and skeletons"
},
"yaml.style.flowMapping": {
"type": "string",
"enum": [
"allow",
"forbid"
],
"default": "allow",
"description": "Forbid flow style mappings"
},
"yaml.style.flowSequence": {
"type": "string",
"enum": [
"allow",
"forbid"
],
"default": "allow",
"description": "Forbid flow style sequences"
},
"yaml.keyOrdering": {
"type": "boolean",
"default": false,
"description": "Enforces alphabetical ordering of keys in mappings when set to true"
},
"yaml.extension.recommendations": {
"type": "boolean",
"default": "true",
"description": "Suggest additional extensions based on YAML usage."
}
}
},
"configurationDefaults": {
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
},
"editor.autoIndent": "keep"
}
}
},
"extensionDependencies": [],
"scripts": {
"build": "npm run clean && npm run lint && npm run vscode:prepublish",
"check-dependencies": "node ./scripts/check-dependencies.js",
"clean": "rimraf out && rimraf dist",
"compile": "webpack --mode none",
"format": "prettier --write .",
"lint": "eslint -c .eslintrc.js --ext .ts src test",
"test": "npm run test-compile && npx vscode-test",
"ui-test": "npm run test-compile && extest setup-and-run out/test/ui-test/allTestsSuite.js -c 1.76.2",
"vscode:prepublish": "webpack --mode production && npm run copy-l10n",
"copy-l10n": "cp -r node_modules/yaml-language-server/l10n dist/l10n",
"watch": "webpack --mode development --watch --info-verbosity verbose",
"test-compile": "npm run clean && tsc -p ./ && webpack --mode development && npm run copy-l10n",
"smoke-test": "npm run test-compile && vscode-test --config .vscode-test.smoketest.mjs",
"compile-smoke-test-web": "webpack --config smoke-test/webpack.config",
"smoke-test-web": "npm run compile-smoke-test-web && vscode-test-web --extensionDevelopmentPath=. --extensionTestsPath=./out/smoke-test/smoke-test-runner.js ./smoke-test",
"run-in-chromium": "npm run compile && vscode-test-web --browserType=chromium --extensionDevelopmentPath=. smoke-test"
},
"devDependencies": {
"@types/chai": "^4.2.12",
"@types/fs-extra": "^9.0.6",
"@types/mocha": "^10.0.10",
"@types/node": "^18.x",
"@types/sinon": "^10.0.6",
"@types/sinon-chai": "^3.2.5",
"@types/vscode": "^1.63.0",
"@types/webpack": "^4.4.10",
"@types/webpack-env": "^1.18.8",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.4.0",
"@vscode/test-web": "^0.0.78",
"buffer": "^6.0.3",
"chai": "^4.2.0",
"crypto-browserify": "^3.12.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"glob": "^7.1.6",
"mocha": "^11.1.2",
"path-browserify": "^1.0.1",
"prettier": "2.2.1",
"process": "^0.11.10",
"rimraf": "^3.0.2",
"sinon": "^12.0.1",
"sinon-chai": "^3.7.0",
"ts-loader": "^9.2.5",
"ts-node": "^3.3.0",
"typescript": "^5.4.5",
"umd-compat-loader": "^2.1.2",
"url": "^0.11.0",
"util": "^0.12.5",
"vscode-extension-tester": "^5.3.0",
"webpack": "^5.76.1",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@redhat-developer/vscode-redhat-telemetry": "^0.8.0",
"fs-extra": "^9.1.0",
"request-light": "^0.5.7",
"vscode-languageclient": "7.0.0",
"vscode-nls": "^3.2.1",
"vscode-uri": "^2.0.3",
"whatwg-fetch": "^3.6.2",
"yaml-language-server": "next"
}
}