-
Notifications
You must be signed in to change notification settings - Fork 54
/
package.json
1333 lines (1333 loc) · 47.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
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
{
"name": "swift-lang",
"displayName": "Swift",
"description": "Swift Language Support for Visual Studio Code.",
"version": "1.11.3",
"publisher": "sswg",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/swiftlang/vscode-swift"
},
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Programming Languages",
"Debuggers",
"Snippets",
"Testing"
],
"keywords": [
"swift",
"sswg"
],
"activationEvents": [
"onLanguage:swift",
"workspaceContains:Package.swift",
"workspaceContains:compile_commands.json",
"onDebugResolve:swift-lldb"
],
"main": "./dist/src/extension.js",
"contributes": {
"icons": {
"swift-icon": {
"description": "The official icon for the Swift programming language",
"default": {
"fontPath": "assets/icon-font.woff",
"fontCharacter": "\\E001"
}
}
},
"terminal": {
"profiles": [
{
"title": "Swift",
"id": "swift.terminalProfile"
}
]
},
"languages": [
{
"id": "swift",
"aliases": [
"Swift"
],
"extensions": [
".swiftinterface",
".swift"
]
}
],
"snippets": [
{
"language": "swift",
"path": "./snippets/swift.code-snippets"
},
{
"language": "swift",
"path": "./snippets/xctest.code-snippets"
},
{
"language": "swift",
"path": "./snippets/swift-testing.code-snippets"
}
],
"commands": [
{
"command": "swift.createNewProject",
"title": "Create New Project...",
"category": "Swift"
},
{
"command": "swift.newFile",
"title": "Create New Swift File...",
"shortTitle": "Swift File",
"category": "Swift"
},
{
"command": "swift.updateDependencies",
"title": "Update Package Dependencies",
"icon": "$(cloud-download)",
"category": "Swift"
},
{
"command": "swift.resolveDependencies",
"title": "Resolve Package Dependencies",
"icon": "$(refresh)",
"category": "Swift"
},
{
"command": "swift.cleanBuild",
"title": "Clean Build Folder",
"category": "Swift"
},
{
"command": "swift.run",
"title": "Run Build",
"category": "Swift"
},
{
"command": "swift.debug",
"title": "Debug Build",
"category": "Swift"
},
{
"command": "swift.resetPackage",
"title": "Reset Package Dependencies",
"icon": "$(clear-all)",
"category": "Swift"
},
{
"command": "swift.runScript",
"title": "Run Swift Script",
"category": "Swift"
},
{
"command": "swift.useLocalDependency",
"title": "Use Local Version",
"category": "Swift"
},
{
"command": "swift.editDependency",
"title": "Edit Locally",
"category": "Swift"
},
{
"command": "swift.uneditDependency",
"title": "Revert To Original Version",
"category": "Swift"
},
{
"command": "swift.openInWorkspace",
"title": "Add to Workspace",
"category": "Swift"
},
{
"command": "swift.openExternal",
"title": "View Repository",
"category": "Swift"
},
{
"command": "swift.openPackage",
"title": "Open Package.swift",
"category": "Swift"
},
{
"command": "swift.restartLSPServer",
"title": "Restart LSP Server",
"category": "Swift"
},
{
"command": "swift.reindexProject",
"title": "Re-Index Project",
"category": "Swift"
},
{
"command": "swift.switchPlatform",
"title": "Select Target Platform...",
"category": "Swift"
},
{
"command": "swift.selectToolchain",
"title": "Select Toolchain...",
"category": "Swift"
},
{
"command": "swift.runSnippet",
"title": "Run Swift Snippet",
"category": "Swift"
},
{
"command": "swift.debugSnippet",
"title": "Debug Swift Snippet",
"category": "Swift"
},
{
"command": "swift.runPluginTask",
"title": "Run Command Plugin",
"category": "Swift"
},
{
"command": "swift.insertFunctionComment",
"title": "Insert Function Comment",
"category": "Swift"
},
{
"command": "swift.attachDebugger",
"title": "Attach to Process...",
"category": "Swift"
},
{
"command": "swift.captureDiagnostics",
"title": "Capture VS Code Swift Diagnostic Bundle",
"category": "Swift"
},
{
"command": "swift.clearDiagnosticsCollection",
"title": "Clear Diagnostics Collection",
"category": "Swift"
},
{
"command": "swift.runTestsMultipleTimes",
"title": "Run Multiple Times...",
"category": "Swift"
},
{
"command": "swift.runTestsUntilFailure",
"title": "Run Until Failure...",
"category": "Swift"
},
{
"command": "swift.runAllTestsParallel",
"title": "Run All Tests in Parallel",
"category": "Test"
}
],
"configuration": [
{
"title": "Swift",
"properties": {
"swift.path": {
"type": "string",
"default": "",
"markdownDescription": "Override the default path of the folder containing the Swift executables. The default is to look in the `PATH` environment variable. This path is also used to search for other executables used by the extension like `sourcekit-lsp` and `lldb`."
},
"swift.buildArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Additional arguments to pass to `swift` commands such as `swift build`, `swift package`, `swift test`, etc... Keys and values should be provided as individual entries in the list. If you have created a copy of the build task in `tasks.json` then these build arguments will not be propogated to that task."
},
"swift.additionalTestArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Additional arguments to pass to the `swift test` or `swift build` commands used when building and running tests from within VS Code.",
"scope": "machine-overridable"
},
"swift.testEnvironmentVariables": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {},
"markdownDescription": "Environment variables to set when running tests. To set environment variables when debugging an application you should edit the `env` field in the relevant `launch.json` configuration.",
"scope": "machine-overridable"
},
"swift.sanitizer": {
"type": "string",
"default": "off",
"enum": [
"off",
"thread",
"address"
],
"markdownDescription": "Runtime [sanitizer instrumentation](https://www.swift.org/documentation/server/guides/llvm-sanitizers.html).",
"scope": "machine-overridable"
},
"swift.searchSubfoldersForPackages": {
"type": "boolean",
"default": false,
"markdownDescription": "Search sub-folders of workspace folder for Swift Packages at start up.",
"scope": "machine-overridable"
},
"swift.autoGenerateLaunchConfigurations": {
"type": "boolean",
"default": true,
"markdownDescription": "When loading a `Package.swift`, auto-generate `launch.json` configurations for running any executables.",
"scope": "machine-overridable"
},
"swift.disableAutoResolve": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable automatic running of `swift package resolve` whenever the `Package.swift` or `Package.resolve` files are updated. This will also disable searching for command plugins and the initial test discovery process.",
"scope": "machine-overridable"
},
"swift.diagnosticsCollection": {
"type": "string",
"default": "keepSourceKit",
"markdownDescription": "Controls how diagnostics from the various providers are merged into the collection of `swift` errors and warnings shown in the Problems pane.",
"enum": [
"onlySwiftc",
"onlySourceKit",
"keepSwiftc",
"keepSourceKit",
"keepAll"
],
"enumDescriptions": [
"Only provide diagnostics from `swiftc`.",
"Only provide diagnostics from `SourceKit`.",
"When merging diagnostics, give precedence to diagnostics from `swiftc`.",
"When merging diagnostics, give precedence to diagnostics from `SourceKit`.",
"Keep diagnostics from all providers."
]
},
"swift.diagnosticsStyle": {
"type": "string",
"default": "llvm",
"markdownDescription": "The formatting style used when printing diagnostics in the Problems panel. Corresponds to the `-diagnostic-style` option to pass to `swiftc` when running `swift` tasks.",
"enum": [
"default",
"llvm",
"swift"
],
"markdownEnumDescriptions": [
"Use whichever diagnostics style `swiftc` produces by default.",
"Use the `llvm` diagnostic style. This allows the parsing of \"notes\".",
"Use the `swift` diagnostic style. This means that \"notes\" will not be parsed. This option has no effect in Swift versions prior to 5.10."
]
},
"swift.backgroundCompilation": {
"type": "boolean",
"default": false,
"markdownDescription": "**Experimental**: Run `swift build` in the background whenever a file is saved. It is possible the background compilation will already be running when you attempt a compile yourself, so this is disabled by default."
},
"swift.actionAfterBuildError": {
"type": "string",
"default": "Focus Terminal",
"enum": [
"Focus Problems",
"Focus Terminal",
"Do Nothing"
],
"enumDescriptions": [
"Focus on Problems View",
"Focus on Build Task Terminal"
],
"markdownDescription": "Action after a Build task generates errors."
},
"swift.buildPath": {
"type": "string",
"default": "",
"markdownDescription": "The path to a directory that will be used for build artifacts. This path will be added to all swift package manager commands that are executed by vscode-swift extension via `--scratch-path` option. When no value provided - nothing gets passed to swift package manager and it will use its default value of `.build` folder in the workspace.\n\nYou can use absolute path for directory or the relative path, which will use the workspace path as a base. Note that VS Code does not respect tildes (`~`) in paths which represents user home folder under *nix systems."
},
"swift.disableSwiftPackageManagerIntegration": {
"type": "boolean",
"default": false,
"markdownDescription": "Disables automated Build Tasks, Package Dependency view, Launch configuration generation and TestExplorer."
},
"swift.warnAboutSymlinkCreation": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether or not the extension will warn about being unable to create symlinks. (Windows only)",
"scope": "application"
},
"swift.enableTerminalEnvironment": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether or not the extension will contribute environment variables defined in `Swift: Environment Variables` to the integrated terminal. If this is set to `true` and a custom `Swift: Path` is also set then the swift path is appended to the terminal's `PATH`."
}
}
},
{
"title": "Code Coverage",
"properties": {
"swift.excludeFromCodeCoverage": {
"description": "A list of paths to exclude from code coverage reports. Paths can be absolute or relative to the workspace root.",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
},
{
"title": "User Interface",
"properties": {
"swift.excludePathsFromPackageDependencies": {
"markdownDescription": "A list of paths to exclude from the Package Dependencies view.",
"type": "array",
"items": {
"type": "string"
},
"default": [
".git",
".github"
]
},
"swift.showBuildStatus": {
"type": "string",
"default": "swiftStatus",
"markdownDescription": "Controls where to show the Swift build progress when running a `swift` build task.",
"enum": [
"never",
"swiftStatus",
"progress",
"notification"
],
"enumDescriptions": [
"Never show the Swift build status.",
"Show the Swift build status in a status bar item provided by the Swift extension.",
"Show the Swift build status in the \"Progress Message\" status bar item provided by VS Code.",
"Show the Swift build status as a progress notification."
]
},
"swift.showCreateSwiftProjectInWelcomePage": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether or not the create new swift project button appears in the welcome page."
},
"swift.openAfterCreateNewProject": {
"type": "string",
"enum": [
"always",
"alwaysNewWindow",
"whenNoFolderOpen",
"prompt"
],
"enumDescriptions": [
"Always open in current window.",
"Always open in a new window.",
"Only open in current window when no folder is opened.",
"Always prompt for action."
],
"default": "prompt",
"markdownDescription": "Controls whether to open a swift project automatically after creating it."
}
}
},
{
"title": "SourceKit-LSP",
"properties": {
"swift.sourcekit-lsp.serverPath": {
"type": "string",
"markdownDescription": "The path of the `sourcekit-lsp` executable. The default is to look in the path where `swift` is found.",
"markdownDeprecationMessage": "**Deprecated**: The sourcekit-lsp executable relies on outputs from tools in your current toolchain. If your sourcekit-lsp version does not match your toolchain you may experience unexpected behaviour. Only modify this setting when developing sourcekit-lsp.",
"order": 1
},
"swift.sourcekit-lsp.serverArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Arguments to pass to SourceKit-LSP. Keys and values should be provided as individual entries in the list. e.g. `['--log-level', 'debug']`",
"order": 2
},
"swift.sourcekit-lsp.supported-languages": {
"type": "array",
"default": [
"swift",
"objective-c",
"objective-cpp",
"c",
"cpp"
],
"markdownDescription": "List of languages supported by SourceKit-LSP. This is used to determine whether SourceKit-LSP should provide language features for a particular file type. If you want a different extension to provide support for a language, remove it from the list.",
"items": {
"type": "string",
"enum": [
"swift",
"objective-c",
"objective-cpp",
"c",
"cpp"
]
},
"order": 3
},
"swift.sourcekit-lsp.backgroundIndexing": {
"type": "boolean",
"default": false,
"markdownDescription": "**Experimental**: Enable or disable background indexing. This option has no effect in Swift versions prior to 6.0.",
"order": 4
},
"swift.sourcekit-lsp.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"verbose"
],
"markdownDescription": "Controls logging the communication between VS Code and the SourceKit-LSP language server. Logs can be viewed in Output > SourceKit Language Server.",
"order": 5
},
"swift.sourcekit-lsp.disable": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable SourceKit-LSP",
"order": 6
},
"sourcekit-lsp.inlayHints.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Display Inlay Hints. Inlay Hints are variable annotations indicating their inferred type. They are only available if you are using Swift 5.6 or later.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#editor.inlayHints.enabled#` instead."
},
"sourcekit-lsp.support-c-cpp": {
"type": "string",
"default": "cpptools-inactive",
"enum": [
"enable",
"disable",
"cpptools-inactive"
],
"enumDescriptions": [
"Always enable",
"Always disable",
"Disable when C/C++ extension is active"
],
"markdownDescription": "Add LSP functionality for C/C++ files. By default this is set to disable when the C/C++ extension is active.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.supported-languages#` instead."
},
"sourcekit-lsp.serverPath": {
"type": "string",
"markdownDescription": "The path of the `sourcekit-lsp` executable. The default is to look in the path where `swift` is found.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.serverPath#` instead."
},
"sourcekit-lsp.serverArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Arguments to pass to SourceKit-LSP. Keys and values should be provided as individual entries in the list. e.g. `['--log-level', 'debug']`",
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.serverArguments#` instead."
},
"sourcekit-lsp.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"verbose"
],
"markdownDescription": "Traces the communication between VS Code and the SourceKit-LSP language server.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.trace.server#` instead."
},
"sourcekit-lsp.disable": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable the running of SourceKit-LSP.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.disable#` instead."
}
}
},
{
"title": "Debugger",
"properties": {
"swift.debugger.useDebugAdapterFromToolchain": {
"type": "boolean",
"default": false,
"markdownDescription": "Use the LLDB debug adapter packaged with the Swift toolchain as your debug adapter. Note: this is only available starting with Swift 6. The CodeLLDB extension will be used if your Swift toolchain does not contain lldb-dap.",
"order": 1
},
"swift.debugger.path": {
"type": "string",
"default": "",
"markdownDescription": "Path to lldb debug adapter.",
"order": 2
}
}
},
{
"title": "Advanced",
"properties": {
"swift.swiftEnvironmentVariables": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {},
"markdownDescription": "Additional environment variables to pass to swift operations (`swift build`, `swift resolve`, etc...).",
"order": 1
},
"swift.runtimePath": {
"type": "string",
"default": "",
"markdownDescription": "The path of the folder containing the Swift runtime libraries. This is of use when supporting non-standard SDK layouts on Windows. On Windows the runtime path is added to the `Path` environment variable. This is of less use on macOS and Linux but will be added to `DYLD_LIBRARY_PATH` and `LD_LIBRARY_PATH` environment variables respectively on each platform. ",
"order": 2
},
"swift.SDK": {
"type": "string",
"default": "",
"markdownDescription": "The path of the SDK to compile against (`--sdk` parameter). This is of use when supporting non-standard SDK layouts on Windows and using custom SDKs. The default SDK is determined by the environment on macOS and Windows.",
"order": 3
},
"swift.diagnostics": {
"type": "boolean",
"default": false,
"markdownDescription": "Output additional diagnostics to the Swift Output View.",
"order": 100
}
}
}
],
"keybindings": [
{
"command": "swift.newFile",
"key": "Alt+S Alt+N"
},
{
"command": "swift.insertFunctionComment",
"key": "Alt+Ctrl+/",
"mac": "Alt+Cmd+/",
"when": "editorTextFocus"
}
],
"menus": {
"testing/item/gutter": [
{
"command": "swift.runTestsMultipleTimes",
"group": "testExtras",
"when": "testId in swift.tests"
},
{
"command": "swift.runTestsUntilFailure",
"group": "testExtras",
"when": "testId in swift.tests"
}
],
"testing/item/context": [
{
"command": "swift.runTestsMultipleTimes",
"group": "testExtras",
"when": "testId in swift.tests"
},
{
"command": "swift.runTestsUntilFailure",
"group": "testExtras",
"when": "testId in swift.tests"
}
],
"file/newFile": [
{
"command": "swift.newFile",
"group": "file",
"when": "swift.isActivated"
}
],
"explorer/context": [
{
"command": "swift.newFile",
"group": "swift",
"when": "swift.isActivated"
}
],
"commandPalette": [
{
"command": "swift.createNewProject",
"when": "!swift.isActivated || swift.createNewProjectAvailable"
},
{
"command": "swift.updateDependencies",
"when": "swift.hasPackage"
},
{
"command": "swift.resolveDependencies",
"when": "swift.hasPackage"
},
{
"command": "swift.cleanBuild",
"when": "swift.hasPackage"
},
{
"command": "swift.switchPlatform",
"when": "swift.isActivated && isMac"
},
{
"command": "swift.insertFunctionComment",
"when": "swift.isActivated"
},
{
"command": "swift.resetPackage",
"when": "swift.hasPackage"
},
{
"command": "swift.restartLSPServer",
"when": "swift.isActivated"
},
{
"command": "swift.openPackage",
"when": "swift.hasPackage"
},
{
"command": "swift.useLocalDependency",
"when": "false"
},
{
"command": "swift.editDependency",
"when": "false"
},
{
"command": "swift.openInWorkspace",
"when": "false"
},
{
"command": "swift.uneditDependency",
"when": "false"
},
{
"command": "swift.openExternal",
"when": "false"
},
{
"command": "swift.run",
"when": "editorLangId == swift && swift.currentTargetType == 'executable'"
},
{
"command": "swift.debug",
"when": "editorLangId == swift && swift.currentTargetType == 'executable'"
},
{
"command": "swift.runScript",
"when": "!swift.fileIsSnippet && editorLangId == swift && swift.currentTargetType == 'none'"
},
{
"command": "swift.runSnippet",
"when": "swift.fileIsSnippet"
},
{
"command": "swift.debugSnippet",
"when": "swift.fileIsSnippet"
},
{
"command": "swift.runPluginTask",
"when": "swift.packageHasPlugins"
},
{
"command": "swift.attachDebugger",
"when": "swift.lldbVSCodeAvailable"
},
{
"command": "swift.reindexProject",
"when": "swift.supportsReindexing"
},
{
"command": "swift.runAllTestsParallel",
"when": "swift.isActivated"
}
],
"editor/context": [
{
"submenu": "swift.editor"
}
],
"swift.editor": [
{
"command": "swift.run",
"group": "1_file@1",
"when": "editorLangId == swift && swift.currentTargetType == 'executable'"
},
{
"command": "swift.debug",
"group": "1_file@2",
"when": "editorLangId == swift && swift.currentTargetType == 'executable'"
},
{
"command": "swift.runScript",
"group": "1_file@3",
"when": "!swift.fileIsSnippet && editorLangId == swift && swift.currentTargetType == 'none'"
},
{
"command": "swift.runSnippet",
"group": "1_file@4",
"when": "swift.fileIsSnippet"
},
{
"command": "swift.debugSnippet",
"group": "1_file@5",
"when": "swift.fileIsSnippet"
},
{
"command": "swift.cleanBuild",
"group": "2_pkg@1",
"when": "swift.hasPackage"
}
],
"view/title": [
{
"command": "swift.updateDependencies",
"when": "view == packageDependencies",
"group": "navigation"
},
{
"command": "swift.resolveDependencies",
"when": "view == packageDependencies",
"group": "navigation"
},
{
"command": "swift.resetPackage",
"when": "view == packageDependencies",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "swift.useLocalDependency",
"when": "view == packageDependencies && viewItem == remote"
},
{
"command": "swift.uneditDependency",
"when": "view == packageDependencies && viewItem == editing"
},
{
"command": "swift.openInWorkspace",
"when": "view == packageDependencies && viewItem == editing"
},
{
"command": "swift.openInWorkspace",
"when": "view == packageDependencies && viewItem == local"
},
{
"command": "swift.openExternal",
"when": "view == packageDependencies && viewItem != local"
}
]
},
"submenus": [
{
"id": "swift.editor",
"label": "Swift"
}
],
"problemMatchers": [
{
"name": "swiftc",
"owner": "swift",
"source": "swiftc",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*?):(\\d+)(?::(\\d+))?:\\s+(warning|error|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
],
"taskDefinitions": [
{
"type": "swift",
"properties": {
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"description": "Additional environment variables to set when running the task.",
"default": {}
},
"cwd": {
"description": "The folder to run the task in.",
"type": "string"
},
"disableTaskQueue": {
"description": "Disable any queued tasks while running the task. This includes the auto resolve when Packages.resolved is updated.",
"type": "boolean"
},
"dontTriggerTestDiscovery": {
"description": "Don't trigger the test discovery process.",
"type": "boolean"
},
"showBuildStatus": {
"description": "Where to show the Swift build progress when running a `swift` build task. Default comes from the `swift.showBuildStatus` setting.",
"type": "string",
"enum": [
"never",
"swiftStatus",
"progress",
"notification"
]
},
"macos": {
"type": "object",
"description": "macOS specific task configuration",
"properties": {
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"description": "Additional environment variables to set when running the task.",
"default": {}
},
"cwd": {
"description": "The folder to run the task in.",
"type": "string"
}
}
},
"linux": {
"type": "object",
"description": "Linux specific task configuration",
"properties": {
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"description": "Additional environment variables to set when running the task.",
"default": {}
},
"cwd": {
"description": "The folder to run the task in.",
"type": "string"
}
}
},
"windows": {
"type": "object",
"description": "Windows specific task configuration",
"properties": {
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"description": "Additional environment variables to set when running the task.",
"default": {}
},
"cwd": {
"description": "The folder to run the task in.",
"type": "string"
}
}
}
},
"required": [
"args"
]
},
{
"type": "swift-plugin",
"properties": {
"command": {
"description": "The plugin command to execute. This should not contain any arguments as it will be quoted.",
"type": "string"
},
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"disableSandbox": {
"description": "Plugins normally run inside a sandbox. Set this to true to disable the sandbox when running .",
"type": "boolean"
},
"allowWritingToPackageDirectory": {