-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathpackage.json
1034 lines (1034 loc) · 39.6 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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"activationEvents": [
"onCommand:extension.ansible-navigator.run",
"onCommand:extension.ansible-playbook.run",
"onCommand:extension.ansible.vault",
"onLanguage:ansible",
"onLanguage:yaml",
"onCommand:extension.resync-ansible-inventory",
"workspaceContains:tox-ansible.ini",
"onWebviewPanel:ansible-content-creator"
],
"badges": [
{
"description": "last-commit",
"href": "https://github.com/ansible/vscode-ansible",
"url": "https://img.shields.io/github/last-commit/ansible/vscode-ansible/main"
},
{
"description": "downloads",
"href": "https://github.com/ansible/vscode-ansible",
"url": "https://img.shields.io/visual-studio-marketplace/d/redhat.ansible"
}
],
"bugs": "https://github.com/ansible/vscode-ansible/issues",
"categories": [
"Programming Languages",
"Linters"
],
"config": {
"//": "Oldest version known to work. Be careful updating as it is mentioned in multiple places.",
"min_vscode": "1.63.0"
},
"contributors": [
{
"name": "Tomasz Maciążek",
"email": "tomaciazek@gmail.com"
},
{
"email": "ssbarnea@redhat.com",
"name": "Sorin Sbarnea"
},
{
"email": "info@ansible.com",
"name": "Ansible DevTools Team and Community Contributors",
"url": "https://github.com/ansible/vscode-ansible/graphs/contributors"
}
],
"contributes": {
"walkthroughs": [
{
"id": "getting-started-with-ansible-extension",
"title": "Getting started with Ansible Extension",
"description": "You first step for knowing and setting up the extension with all the developer features that the Ansible extension has to offer!",
"steps": [
{
"id": "create-ansible-file",
"title": "Create an Ansible-YAML file",
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22ansible%22%7D) a Ansible-YAML file - make sure to save it as \".yml\" or \".yaml\".\n[Create Ansible Playbook](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22ansible%22%7D)\n\n💡 It's normal to see some red tags in the status bar. This is because necessary ansible tools are not installed. We will fix this as we more forward.",
"media": {
"image": "media/walkthroughs/gettingStarted/open-folder.png",
"altText": "No image found"
}
},
{
"id": "check-ansible-language",
"title": "Ensure \"Ansible\" language",
"description": "All the language support is only available for an Ansible file. Make sure that the language of the file is \"Ansible\". If not,\n[Change Language](command:ansible.walkthrough.gettingStarted.setLanguage)\n🔍 Check out this [section](https://github.com/ansible/vscode-ansible?tab=readme-ov-file#language-association-to-yaml-files) to learn more about ansible language association to yaml files.",
"media": {
"markdown": "media/walkthroughs/gettingStarted/selectAnsibleLanguage.md"
}
},
{
"id": "check-ansible-statusbar-tag",
"title": "Check out the Ansible Version tag",
"description": "Hovering over the \"Ansible version\" written in the status-bar can tell you about your entire workspace environment. The following symbols convey the following message: \n $(bracket-dot) - All the required tools are present in the environment.\n $(warning) - Ansible Lint is missing in the environment. Partial diagnostics will be present in the extension.\n $(error) - Ansible is missing in the environment. None of the features in the extension will work properly.\n**Tools missing?** Move on to the next step to set up your environment properly.",
"media": {
"markdown": "media/walkthroughs/gettingStarted/ansibleEnvironment.md"
}
},
{
"id": "set-up-ansible-environment",
"title": "Set up an Ansible Environment",
"description": "Select or create a new environment for the extension to pick up the ansible binaries.\n💡 This option also lets you to create a new virtual environment too!.\n[Select Environment](command:ansible.python.set.interpreter)\nIf the ansible tools are missing, install the recommended tools within your environment in just one click for a smooth experience.\n[Install Ansible Tools](command:ansible.install-ansible-dev-tools)",
"media": {
"image": "media/walkthroughs/gettingStarted/all-adt-tools.png",
"altText": "No image found"
}
},
{
"id": "start-writing-ansible-playbook",
"title": "Start writing ansible playbook",
"description": "As you start writing your ansible playbook, the extension will provide all the language support for ansible. \n$(bracket) **Syntax highlighting**\nDistinguishes Ansible keywords, module names and options, jinja expressions and YAML components with distinct highlighting. \n $(gather) **Auto completion**\n Suggests completions based on context, such as vars, plays, blocks, or tasks. \n $(bug) **Diagnostics**\nProvides instant feedback on ansible syntax errors as you type. Additionally, validates ansible content for best practices. \n $(eye) **Hovering**\n Displays documentation when hovering over Ansible elements, sourced from Python module implementations. \n $(go-to-file) **Go to definition**\n Navigates to module implementations, with simple by actions such as clicking while holding ctrl/cmd or using context menus.\nYou can also check the language services logs if required.\n[Open Ansible Services Logs](command:ansible.open-language-server-logs)",
"media": {
"markdown": "media/walkthroughs/gettingStarted/languageFeatures.md"
}
},
{
"id": "run-ansible-playbook",
"title": "Run the playbook",
"description": "Once done writing the playbook, you can run the playbook without having to leave the editor. Simply right-click on the active editor and go to \"Run playbook via...\"\n💡 If you have \"Ansible Navigator\" installed, you can choose to run your playbook using ansible navigator.",
"media": {
"image": "media/walkthroughs/gettingStarted/run-ansible-playbook.png",
"altText": "No image found"
}
},
{
"id": "explore-ansible-extension-settings",
"title": "Know your Ansible Extension Settings",
"description": "The extension provides various settings categorised into sections to give you full control over configurations.\n[Open Extension Settings](command:toSide:ansible.extension-settings.open)\n 🔍 Check out this [section](https://ansible.readthedocs.io/projects/vscode-ansible/#configuration) to learn about each setting and how to use them.",
"completionEvents": [
"onCommand:ansible.extension-settings.open"
],
"media": {
"image": "media/walkthroughs/gettingStarted/ansible-extension-settings.png",
"altText": "No image found for extension settings"
}
},
{
"id": "explore-more-resources",
"title": "Explore more resources",
"description": "📚 Learn what is an Ansible Playbook and how to write one using best practices in this [article](https://www.redhat.com/en/topics/automation/what-is-an-ansible-playbook).\n🔬 Read about the capabilities of various [Ansible Development Tools](https://ansible.readthedocs.io/projects/dev-tools/) to make the best use of them.\n🗒️ Take a look at our [Release Notes](https://github.com/ansible/vscode-ansible/releases) to learn more about the latest features.\n[Learn more](https://www.ansible.com/blog/deep-dive-on-ansible-vscode-extension/)",
"completionEvents": [
"onLink:https://www.ansible.com/blog/deep-dive-on-ansible-vscode-extension/"
],
"media": {
"image": "media/walkthroughs/gettingStarted/learn-more.png",
"altText": "No image found"
}
}
]
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ansible-explorer",
"title": "Ansible",
"icon": "images/ansible.svg"
}
],
"panel": [
{
"id": "lightspeed-training-match-panel",
"title": "Ansible",
"icon": "images/ansible.svg"
}
]
},
"views": {
"ansible-explorer": [
{
"id": "ansible-content-creator",
"name": "Ansible content creator"
},
{
"id": "lightspeed-explorer-webview",
"name": "Ansible Lightspeed",
"type": "webview"
},
{
"id": "lightspeed-feedback-webview",
"name": "Ansible Lightspeed Feedback",
"type": "webview"
}
],
"lightspeed-training-match-panel": [
{
"id": "ansible.lightspeed.trainingMatchPanel",
"name": "Lightspeed Training Matches",
"type": "webview",
"contextualTitle": "Ansible",
"when": "redhat.ansible.lightspeedSuggestionsEnabled",
"visibility": "visible",
"retainContextWhenHidden": true
}
]
},
"viewsWelcome": [
{
"view": "ansible-content-creator",
"contents": "Elevate automation with a toolkit for efficient Ansible content creation.\n[Get started](command:ansible.content-creator.menu)"
}
],
"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"
}
],
"commands": [
{
"command": "extension.resync-ansible-inventory",
"title": "Resync Ansible Inventory"
},
{
"category": "%commands.category.ansible-playbook%",
"command": "extension.ansible-playbook.run",
"title": "%commands.title.ansible-playbook%"
},
{
"category": "%commands.category.ansible-playbook%",
"command": "extension.ansible-navigator.run",
"title": "%commands.title.ansible-navigator%"
},
{
"category": "%commands.category.ansible-vault%",
"command": "extension.ansible.vault",
"title": "%commands.title.ansible-vault%"
},
{
"command": "ansible.python.set.interpreter",
"title": "Ansible: Set Python Interpreter"
},
{
"command": "ansible.extension-settings.open",
"title": "Ansible: Open Ansible Extension Settings"
},
{
"command": "ansible.python-settings.open",
"title": "Ansible: Open Python Settings"
},
{
"command": "ansible.content-creator.menu",
"title": "Open Ansible Content Creator menu"
},
{
"command": "ansible.content-creator.install",
"title": "Install Ansible Content Creator"
},
{
"command": "ansible.content-creator.create-ansible-collection",
"title": "Ansible: Create New Collection"
},
{
"command": "ansible.content-creator.create-ansible-project",
"title": "Ansible: Create New Playbook Project"
},
{
"command": "ansible.content-creator.create",
"title": "Ansible Content Creator: Create"
},
{
"command": "ansible.content-creator.sample",
"title": "Ansible Content Creator: Sample"
},
{
"command": "ansible.lightspeed.inlineSuggest.accept",
"title": "Ansible Lightspeed: Inline suggestion accept"
},
{
"command": "ansible.lightspeed.inlineSuggest.hide",
"title": "Ansible Lightspeed: Inline suggestion hide"
},
{
"command": "ansible.lightspeed.inlineSuggest.trigger",
"title": "Ansible Lightspeed: Inline suggestion trigger"
},
{
"command": "ansible.lightspeed.fetchTrainingMatches",
"title": "Ansible Lightspeed: Fetch Training Matches"
},
{
"command": "ansible.lightspeed.clearTrainingMatches",
"title": "Ansible Lightspeed: Clear Training Matches"
},
{
"command": "ansible.lightspeed.feedback",
"title": "Ansible Lightspeed: Feedback"
},
{
"command": "ansible.lightspeed.signInWithRedHat",
"title": "Ansible Lightspeed: Sign in with Red Hat"
},
{
"command": "ansible.lightspeed.signInWithLightspeed",
"title": "Ansible Lightspeed: Sign in with Lightspeed"
},
{
"command": "ansible.lightspeed.playbookGeneration",
"title": "Ansible Lightspeed: Playbook generation"
},
{
"command": "ansible.lightspeed.thumbsUpDown",
"title": "Send Lightspeed Thumbs Up/Down Feedback"
},
{
"command": "ansible.lightspeed.playbookExplanation",
"title": "Explain the playbook with Ansible Lightspeed"
},
{
"command": "ansible.lightspeed.openTrialPage",
"title": "Ansible Lightspeed: Open trial page",
"enablement": "redhat.ansible.lightspeedExperimentalEnabled"
},
{
"command": "ansible.lightspeed.explorer.refresh",
"title": "Ansible Lightspeed: Refresh explorer view",
"icon": "$(refresh)"
},
{
"command": "ansible.lightspeed.enableExperimentalFeatures",
"title": "Ansible Lightspeed: Enable experimental features"
},
{
"command": "ansible.walkthrough.gettingStarted.setLanguage",
"title": "Ansible: Getting started - Set Language"
},
{
"command": "ansible.install-ansible-dev-tools",
"title": "Ansible: Install Ansible Development Tools"
},
{
"command": "ansible.open-language-server-logs",
"title": "Ansible: Open Language Server Logs"
}
],
"configuration": [
{
"title": "Basic Configurations",
"properties": {
"ansible.ansible.path": {
"scope": "machine-overridable",
"type": "string",
"default": "ansible",
"markdownDescription": "Path to the ansible executable. All subcommands are expected to have adjacent locations.",
"order": 0
},
"ansible.ansible.useFullyQualifiedCollectionNames": {
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Always use fully qualified collection names (FQCN) when inserting a module name. Disabling it will only use FQCNs when necessary.",
"order": 1
},
"ansible.ansible.reuseTerminal": {
"scope": "machine-overridable",
"type": "boolean",
"default": false,
"markdownDescription": "Enabling this will cause ansible commands run through VS Code to reuse the same Ansible Terminal.",
"order": 2
}
}
},
{
"title": "Python",
"properties": {
"ansible.python.interpreterPath": {
"scope": "machine-overridable",
"type": "string",
"default": "",
"markdownDescription": "Path to the Python interpreter executable. Particularly important if you are using a Python virtual environment. Leave blank to use Python from PATH.",
"order": 0
},
"ansible.python.activationScript": {
"scope": "machine-overridable",
"type": "string",
"default": "",
"markdownDescription": "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.",
"order": 1
}
}
},
{
"title": "Ansible Navigator",
"properties": {
"ansible.ansibleNavigator.path": {
"default": "ansible-navigator",
"markdownDescription": "%configuration.navigate.executablePath%",
"order": 0,
"scope": "machine-overridable",
"type": "string"
}
}
},
{
"title": "Ansible Playbook",
"properties": {
"ansible.playbook.arguments": {
"default": "",
"markdownDescription": "%configuration.playbook.arguments%",
"order": 0,
"scope": "resource",
"type": "string"
}
}
},
{
"title": "Completion",
"properties": {
"ansible.completion.provideRedirectModules": {
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Toggle redirected module provider when completing modules.",
"order": 0
},
"ansible.completion.provideModuleOptionAliases": {
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Toggle alias provider when completing module options.",
"order": 1
}
}
},
{
"title": "Validation",
"properties": {
"ansible.validation.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "If disabled no validation will be performed.",
"order": 0
},
"ansible.validation.lint.enabled": {
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enables `ansible-lint`. If disabled only `ansible-playbook --syntax-check` will run. Requires `#ansible.validation.enabled#` to be enabled.",
"order": 1
},
"ansible.validation.lint.path": {
"scope": "machine-overridable",
"type": "string",
"default": "ansible-lint",
"markdownDescription": "Path to the ansible-lint executable.",
"order": 2
},
"ansible.validation.lint.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Command line arguments to be passed to ansible-lint.",
"order": 3
}
}
},
{
"title": "Execution Environment",
"properties": {
"ansible.executionEnvironment.enabled": {
"scope": "resource",
"type": "boolean",
"default": false,
"markdownDescription": "Enable or disable the use of an execution environment.",
"order": 0
},
"ansible.executionEnvironment.containerEngine": {
"scope": "resource",
"type": "string",
"enum": [
"auto",
"podman",
"docker"
],
"default": "auto",
"markdownDescription": "Specify the container engine (auto=podman then docker).",
"order": 1
},
"ansible.executionEnvironment.containerOptions": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Extra parameters passed to the container engine command example: `--net=host`.",
"order": 2
},
"ansible.executionEnvironment.image": {
"scope": "resource",
"type": "string",
"default": "ghcr.io/ansible/creator-ee:latest",
"markdownDescription": "Specify the name of the execution environment image.",
"order": 3
},
"ansible.executionEnvironment.pull.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "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`.",
"order": 4
},
"ansible.executionEnvironment.pull.policy": {
"scope": "resource",
"type": "string",
"enum": [
"always",
"missing",
"never",
"tag"
],
"default": "missing",
"markdownDescription": "Specify the image pull policy.\n**always**: Always pull the image when extension is activated or reloaded\n**missing**: Pull if not locally available\n**never**: Never pull the image\n**tag**: If the image tag is `latest`, always pull the image, otherwise pull if not locally available.",
"order": 5
},
"ansible.executionEnvironment.volumeMounts": {
"scope": "resource",
"type": "array",
"items": {
"type": "object",
"properties": {
"src": {
"type": "string",
"markdownDescription": "The name of the local volume or path to be mounted within execution environment.",
"order": 6
},
"dest": {
"type": "string",
"markdownDescription": "The path where the file or directory are mounted in the container.",
"order": 7
},
"options": {
"type": "string",
"markdownDescription": "The field is optional, and is a comma-separated list of options, such as `ro,Z.`",
"order": 8
}
}
}
}
}
},
{
"title": "Telemetry",
"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).",
"order": 0,
"tags": [
"telemetry",
"usesOnlineServices"
],
"scope": "window"
}
}
},
{
"title": "Ansible Lightspeed",
"properties": {
"ansible.lightspeed.enabled": {
"scope": "resource",
"type": "boolean",
"default": false,
"markdownDescription": "Enable Ansible Lightspeed.",
"order": 0
},
"ansible.lightspeed.URL": {
"scope": "resource",
"type": "string",
"default": "https://c.ai.ansible.redhat.com",
"markdownDescription": "URL for Ansible Lightspeed.",
"order": 1
},
"ansible.lightspeed.suggestions.enabled": {
"scope": "resource",
"type": "boolean",
"default": false,
"markdownDescription": "Enable Ansible Lightspeed with watsonx Code Assistant inline suggestions.",
"order": 2
},
"ansible.lightspeed.suggestions.waitWindow": {
"scope": "resource",
"type": "number",
"default": 0,
"markdownDescription": "Delay (in msecs) prior to sending an inline suggestion request to Ansible Lightspeed with watsonx Code Assistant.",
"order": 3
},
"ansible.lightspeed.modelIdOverride": {
"scope": "resource",
"type": "string",
"markdownDescription": "Model ID to override your organization's default model. This setting is only applicable to commercial users with an Ansible Lightspeed seat assignment.",
"order": 4
}
}
},
{
"title": "Language Server",
"properties": {
"ansibleServer.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"markdownDescription": "Traces the communication between editor and the ansible language server.",
"order": 0
}
}
}
],
"configurationDefaults": {
"[ansible]": {
"editor.detectIndentation": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"comments": true,
"other": true,
"strings": true
},
"editor.autoIndent": "advanced"
}
},
"keybindings": [
{
"key": "tab",
"command": "ansible.lightspeed.inlineSuggest.accept",
"extensionName": "Ansible",
"source": "extension",
"when": "inlineSuggestionVisible && editorLangId == 'ansible'"
},
{
"key": "escape",
"command": "ansible.lightspeed.inlineSuggest.hide",
"extensionName": "Ansible",
"source": "extension",
"when": "inlineSuggestionVisible && editorLangId == 'ansible'"
},
{
"key": "ctrl+.",
"command": "ansible.lightspeed.inlineSuggest.trigger",
"extensionName": "Ansible",
"source": "extension",
"when": "config.ansible.lightspeed.enabled && config.ansible.lightspeed.suggestions.enabled && editorTextFocus && !editorHasSelection && !inlineSuggestionVisible && editorLangId == 'ansible'"
}
],
"languages": [
{
"id": "ansible",
"aliases": [
"Ansible",
"ansible"
],
"extensions": [
".ansible.yml",
".ansible.yaml"
],
"filenamePatterns": [
"**/playbooks/*.yml",
"**/playbooks/*.yaml",
"**/*playbook*.yml",
"**/*playbook*.yaml",
"**/roles/**/main.yml",
"**/roles/**/main.yaml"
],
"filenames": [
"site.yml",
"site.yaml"
],
"firstLine": "# code: language=ansible",
"icon": {
"dark": "images/ansible-fileicon.svg",
"light": "images/ansible-fileicon.svg"
},
"configuration": "./ansible-language-configuration.json"
},
{
"comments": "unfortunately this dummy entry is necessary for embedding to work",
"id": "ansible-jinja",
"configuration": "./jinja-language-configuration.json"
}
],
"menus": {
"ansible.playbook.run": [
{
"command": "extension.ansible-navigator.run"
},
{
"command": "extension.ansible-playbook.run"
}
],
"editor/context": [
{
"group": "2_main@1",
"submenu": "ansible.playbook.run",
"when": "isFileSystemResource && editorLangId == ansible"
},
{
"group": "2_main@1",
"command": "ansible.lightspeed.playbookExplanation"
}
],
"explorer/context": [
{
"group": "2_main@1",
"submenu": "ansible.playbook.run",
"when": "isFileSystemResource && resourceLangId == ansible"
}
],
"view/title": [
{
"command": "ansible.lightspeed.explorer.refresh",
"when": "view == lightspeed-explorer-webview",
"group": "navigation"
}
]
},
"submenus": [
{
"id": "ansible.playbook.run",
"label": "%submenus.ansible.run-via%"
}
],
"grammars": [
{
"comments": [
"YAML syntax as base for Ansible",
"scopeName changed so that we can use it as base for injections"
],
"language": "ansible",
"scopeName": "source.ansible",
"path": "./syntaxes/external/YAML.tmLanguage"
},
{
"comments": [
"Jinja syntax as injection into Ansible YAML",
"This is so that we do not need to rely on the Jinja extension being installed"
],
"language": "ansible-jinja",
"scopeName": "source.ansible-jinja",
"path": "./syntaxes/external/jinja.tmLanguage.json"
},
{
"comments": [
"Highlighting of Ansible keywords"
],
"path": "./syntaxes/ansible/generated/keywords.tmLanguage",
"scopeName": "injection.ansible.keywords",
"injectTo": [
"source.ansible"
]
},
{
"comments": [
"Additional Jinja grammars"
],
"path": "./syntaxes/ansible/generated/jinja-extras.tmLanguage",
"scopeName": "injection.ansible.jinja-extras",
"injectTo": [
"source.ansible"
]
},
{
"comments": [
"Support for Jinja in double curly braces"
],
"path": "./syntaxes/ansible/generated/jinja-braces.tmLanguage",
"scopeName": "injection.ansible.jinja-braces",
"embeddedLanguages": {
"meta.embedded.inline.jinja": "ansible-jinja"
},
"injectTo": [
"source.ansible"
]
},
{
"comments": [
"Support for Jinja in conditionals"
],
"path": "./syntaxes/ansible/generated/jinja-conditionals.tmLanguage",
"scopeName": "injection.ansible.jinja-conditionals",
"embeddedLanguages": {
"meta.embedded.inline.jinja": "ansible-jinja"
},
"injectTo": [
"source.ansible"
]
},
{
"comments": [
"The quote escapes implemented in the conditionals injection do not work inside brackets etc.",
"Support for single quote escapes in Jinja"
],
"path": "./syntaxes/ansible/generated/jinja-single-quote-escape.tmLanguage",
"scopeName": "injection.ansible.jinja-single-quote-escape",
"injectTo": [
"source.ansible"
]
},
{
"comments": [
"The quote escapes implemented in the conditionals injection do not work inside brackets etc.",
"Support for double quote escapes in Jinja"
],
"path": "./syntaxes/ansible/generated/jinja-double-quote-escape.tmLanguage",
"scopeName": "injection.ansible.jinja-double-quote-escape",
"injectTo": [
"source.ansible"
]
}
],
"taskDefinitions": [
{
"type": "Ansible Tox",
"properties": {
"ansible": {
"type": "string",
"description": "The testenv to execute"
}
}
}
]
},
"dependencies": {
"@ansible/ansible-language-server": "workspace:^",
"@redhat-developer/vscode-redhat-telemetry": "^0.8.0",
"@shikijs/core": "^1.12.0",
"@types/ini": "^4.1.1",
"@vscode/webview-ui-toolkit": "^1.4.0",
"axios": "^1.7.2",
"express": "^4.19.2",
"ini": "^4.1.3",
"marked": "^13.0.3",
"minimatch": "^9.0.5",
"start-server-and-test": "^2.0.5",
"uuid": "^10.0.0",
"vscode-languageclient": "^9.0.1",
"vscode-uri": "^3.0.8",
"yaml": "^2.5.0"
},
"description": "Ansible language support",
"devDependencies": {
"@eslint/js": "^9.8.0",
"@types/chai": "^4.3.16",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/jsdom": "^21.1.7",
"@types/lodash": "^4.17.7",
"@types/minimatch": "^5.1.2",
"@types/mocha": "^10.0.7",
"@types/morgan": "^1.9.9",
"@types/node": "^20.14.13",
"@types/selenium-webdriver": "^4.1.24",
"@types/sinon": "^17.0.3",
"@types/tmp": "^0.2.6",
"@types/uuid": "^10.0.0",
"@types/vscode": "^1.85.0",
"@types/vscode-webview": "^1.57.5",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^2.31.1",
"axios": "^1.7.2",
"chai": "^4.5.0",
"depcheck": "^1.4.7",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-formatter-gha": "^1.5.0",
"eslint-formatter-unix": "^8.40.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-tsdoc": "^0.3.0",
"find-process": "^1.4.7",
"glob": "^10.4.5",
"globals": "^15.8.0",
"jsdom": "^24.1.1",
"lodash": "^4.17.21",
"mocha": "^10.7.0",
"mochawesome": "^7.1.3",
"mochawesome-report-generator": "^6.2.0",
"morgan": "^1.10.0",
"nyc": "^17.0.0",
"ovsx": "^0.9.2",
"prettier": "^3.3.3",
"react": "^18.3.1",
"rimraf": "^5.0.9",
"selenium-webdriver": "^4.23.0",
"shiki": "^1.12.0",
"sinon": "^18.0.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"typescript-eslint": "^7.18.0",
"vscode-extension-tester": "^8.3.0",
"warnings-to-errors-webpack-plugin": "^2.3.0",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"winston": "^3.13.1",
"yargs": "^17.7.2",
"yarn-audit-fix": "^10.0.7"
},
"displayName": "Ansible",
"engineStrict": true,
"engines": {
"//": "node version affects only development, it does not affect VS Code runtime",
"node": ">=16.0",
"npm": "\n\nERROR: Please use yarn instead of npm for this repository.!!!\n\n",
"vscode": "^1.85.0",
"yarn": ">=3.2.1"
},
"extensionDependencies": [
"ms-python.python",
"redhat.vscode-yaml"
],
"icon": "images/logo.png",
"keywords": [
"ansible",
"yaml",
"autocompletion",
"validation"
],
"license": "MIT",
"main": "./out/client/src/extension.js",
"name": "ansible",
"publisher": "redhat",
"qna": false,
"repository": {
"type": "git",
"url": "git+https://github.com/ansible/vscode-ansible.git"
},
"scripts": {
"compile": "tsc -b && tsc -p ./packages/ansible-language-server/tsconfig.json --outDir ./out/server --sourceMap",
"compile-withserver": "tsc -b && tsc -p ../ansible-language-server --outDir out/server && ln -f -s ${PWD}/../ansible-language-server/node_modules out/server/node_modules",
"package": "./tools/helper --package",
"preinstall": "",
"pretest": "yarn run compile",
"unit-tests": "sh -c \"nyc mocha --recursive test/units/lightspeed ${MOCHA_OPTS:-}\"",
"test-ui": "yarn run test-ui-current && yarn run test-ui-oldest",
"_test-ui": "extest get-vscode -c ${CODE_VERSION} -s out/test-resources && extest get-chromedriver -c ${CODE_VERSION} -s out/test-resources && extest install-vsix -f ansible-*.vsix -e out/ext -s out/test-resources && extest install-from-marketplace redhat.vscode-yaml ms-python.python -e out/ext -s out/test-resources && extest run-tests -s out/test-resources -e out/ext --code_settings test/testFixtures/settings.json out/client/test/ui-test/allTestsSuite.js",
"test-ui-current": "CODE_VERSION='max' yarn _test-ui",
"test-ui-oldest": "CODE_VERSION='min' yarn _test-ui",
"test-ui-with-mock-lightspeed-server": "TEST_LIGHTSPEED_URL='http://127.0.0.1:3000' ./tools/run-ui-test-with-mock-lightspeed-server.sh",
"_coverage-ui": "extest get-vscode -c ${CODE_VERSION} -s out/test-resources && extest get-chromedriver -c ${CODE_VERSION} -s out/test-resources && extest install-from-marketplace redhat.vscode-yaml ms-python.python -e out/ext -s out/test-resources && extest run-tests --coverage -s out/test-resources -e out/ext --code_settings test/testFixtures/settings.json out/client/test/ui-test/allTestsSuite.js",
"coverage-ui-current": "COVERAGE=1 CODE_VERSION='max' yarn _coverage-ui",