-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
385 lines (385 loc) · 13.2 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
{
"name": "@yaegassy/coc-ansible",
"version": "0.14.3",
"description": "ansible-language-server extension for coc.nvim",
"author": "yaegassy <[email protected]>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"ansible",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-ansible"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^18.16.19",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"typescript": "~5.0.4",
"which": "^2.0.2"
},
"activationEvents": [
"onLanguage:ansible",
"onLanguage:yaml.ansible"
],
"contributes": {
"jsonValidation": [
{
"fileMatch": [
".ansible-navigator.json",
"ansible-navigator.json"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-navigator/main/src/ansible_navigator/data/ansible-navigator.json"
}
],
"yamlValidation": [
{
"fileMatch": [
"execution-environment.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/execution-environment.json"
},
{
"fileMatch": [
"meta/runtime.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/meta-runtime.json"
},
{
"fileMatch": [
".ansible-navigator.yaml",
".ansible-navigator.yml",
"ansible-navigator.yaml",
"ansible-navigator.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-navigator/main/src/ansible_navigator/data/ansible-navigator.json"
},
{
"fileMatch": "requirements.yml",
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/requirements.json"
},
{
"fileMatch": "meta/main.yml",
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/meta.json"
},
{
"fileMatch": [
"playbooks/vars/*.yml",
"playbooks/vars/*.yaml",
"vars/*.yml",
"vars/*.yaml",
"defaults/*.yml",
"defaults/*.yaml",
"host_vars/*.yml",
"host_vars/*.yaml",
"group_vars/*.yml",
"group_vars/*.yaml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/vars.json"
},
{
"fileMatch": [
".ansible-lint",
".config/ansible-lint.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible-lint-config.json"
},
{
"fileMatch": [
"molecule/*/molecule.yml"
],
"url": "https://raw.githubusercontent.com/ansible-community/molecule/main/src/molecule/data/molecule.json"
},
{
"fileMatch": [
"galaxy.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/galaxy.json"
},
{
"fileMatch": [
"rulebooks/*.yaml",
"rulebooks/*.yml"
],
"url": "https://raw.githubusercontent.com/ansible/ansible-rulebook/main/schema/ruleset_schema.json"
}
],
"rootPatterns": [
{
"filetype": "ansible",
"patterns": [
"ansible.cfg",
".ansible-lint"
]
},
{
"filetype": "yaml.ansible",
"patterns": [
"ansible.cfg",
".ansible-lint"
]
}
],
"configuration": {
"type": "object",
"title": "coc-ansible configuration",
"properties": {
"ansible.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-ansible extension."
},
"ansible.disableProgressNotifications": {
"type": "boolean",
"default": false,
"description": "Disable progress notifications from ansible-language-server"
},
"ansible.builtin.isWithYamllint": {
"type": "boolean",
"default": false,
"description": "Whether to install yamllint the built-in installer."
},
"ansible.builtin.ansibleVersion": {
"type": "string",
"default": "",
"description": "Version of ansible for built-in install."
},
"ansible.builtin.ansibleLintVersion": {
"type": "string",
"default": "",
"description": "Version of ansible-lint for built-in install."
},
"ansible.builtin.force": {
"type": "string",
"default": "",
"description": "Whether to force builtin tools instead those in the PATH"
},
"ansible.builtin.yamllintVersion": {
"type": "string",
"default": "",
"description": "Version of yamllint for built-in install."
},
"ansible.ansible.path": {
"scope": "resource",
"type": "string",
"default": "ansible",
"description": "Path to the ansible executable. All subcommands are expected to have adjacent locations."
},
"ansible.ansible.useFullyQualifiedCollectionNames": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Always use fully qualified collection names (FQCN) when inserting a module name. Disabling it will only use FQCNs when necessary."
},
"ansible.python.interpreterPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the python/python3 executable. This settings may be used to make the extension work with ansible and ansible-lint installations in a python virtual environment"
},
"ansible.python.activationScript": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the virtual environment activation script. Use only if you have a custom activation script. It will be sourced using bash before executing Ansible commands. When set, the Interpreter Path setting is ignored."
},
"ansible.validation.enabled": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Toggle validation provider. If enabled and ansible-lint is disabled, validation falls back to ansible-playbook --syntax-check."
},
"ansible.validation.lint.enabled": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Toggle usage of ansible-lint."
},
"ansible.validation.lint.path": {
"scope": "resource",
"type": "string",
"default": "ansible-lint",
"description": "Path to the ansible-lint executable."
},
"ansible.validation.lint.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Optional command line arguments to be appended to ansible-lint invocation."
},
"ansible.ansibleDoc.path": {
"scope": "resource",
"type": "string",
"default": "ansible-doc",
"description": "Path to the ansible-doc executable."
},
"ansible.ansibleDoc.enableSplitRight": {
"type": "boolean",
"default": true,
"description": "Use vertical belowright for ansible-doc terminal window."
},
"ansible.ansibleNavigator.path": {
"default": "ansible-navigator",
"description": "Points to the ansible-navigator executable.",
"scope": "machine-overridable",
"type": "string"
},
"ansible.executionEnvironment.containerEngine": {
"scope": "resource",
"type": "string",
"enum": [
"auto",
"podman",
"docker"
],
"default": "auto",
"description": "Specify the container engine (auto=podman then docker)."
},
"ansible.executionEnvironment.enabled": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enable or disable the use of an execution environment."
},
"ansible.executionEnvironment.image": {
"scope": "resource",
"type": "string",
"default": "quay.io/ansible/creator-ee:latest",
"description": "Specify the name of the execution environment image."
},
"ansible.executionEnvironment.containerOptions": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Extra parameters passed to the container engine command example: '--net=host'"
},
"ansible.executionEnvironment.pull.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Specify any additional parameters that should be added to the pull command when pulling an execution environment from a container registry. e.g. '--tls-verify=false'"
},
"ansible.executionEnvironment.pullPolicy": {
"scope": "resource",
"type": "string",
"enum": [
"always",
"missing",
"never",
"tag"
],
"default": "missing",
"description": "Specify the image pull policy.\nalways: Always pull the image when extension is activated or reloaded\nmissing: Pull if not locally available\nnever: Never pull the image\ntag: If the image tag is 'latest', always pull the image, otherwise pull if not locally available"
},
"ansible.executionEnvironment.volumeMounts": {
"scope": "resource",
"type": "array",
"items": {
"type": "object",
"properties": {
"src": {
"type": "string",
"description": "The name of the local volume or path to be mounted within execution environment."
},
"dest": {
"type": "string",
"description": "The path where the file or directory are mounted in the container."
},
"options": {
"type": "string",
"description": "The field is optional, and is a comma-separated list of options, such as ro,Z"
}
}
}
},
"ansible.completion.provideRedirectModules": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Toggle redirected module provider when completing modules."
},
"ansible.completion.provideModuleOptionAliases": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Toggle alias provider when completing module options."
},
"ansible.dev.serverPath": {
"type": "string",
"default": "",
"description": "Absolute path to ansible language server module. If it is not set, use the extention's server module. (For develop and check)"
},
"ansibleServer.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the ansible language server."
}
}
},
"commands": [
{
"command": "ansible.builtin.installRequirementsTools",
"title": "Install ansible, ansible-lint and yamllint(optional) with extension's venv"
},
{
"command": "ansible.server.restart",
"title": "Restart ansible language server"
},
{
"command": "ansible.server.showMetaData",
"title": "Show ansible-metadata for ansible language server"
},
{
"command": "ansible.server.resyncAnsibleInventory",
"title": "Resync Ansible Inventory"
},
{
"command": "ansible.ansbileDoc.showInfo",
"title": "Run the `ansible-doc` command in a terminal window with various options to display information about the plugins"
},
{
"command": "ansible.ansbileDoc.showSnippets",
"title": "Run the `ansible-doc` command in a terminal window with various options to display a snippets of the plugins."
}
]
},
"dependencies": {
"@ansible/ansible-language-server": "^1.2.3"
},
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}