You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be more explicit about settings scopes, marking appropriate ones as
`application` (user settings applied across all swift projects) and
`machine-overridable` (for per-project settings).
Copy file name to clipboardExpand all lines: package.json
+57-29Lines changed: 57 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -319,15 +319,17 @@
319
319
"swift.path": {
320
320
"type": "string",
321
321
"default": "",
322
-
"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`."
322
+
"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`.",
323
+
"scope": "machine-overridable"
323
324
},
324
325
"swift.buildArguments": {
325
326
"type": "array",
326
327
"default": [],
327
328
"items": {
328
329
"type": "string"
329
330
},
330
-
"markdownDescription": "Additional arguments to pass to `swift build` and `swift test`. 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 propagated to that task."
331
+
"markdownDescription": "Additional arguments to pass to `swift build` and `swift test`. 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 propagated to that task.",
332
+
"scope": "machine-overridable"
331
333
},
332
334
"swift.scriptSwiftLanguageVersion": {
333
335
"type": "string",
@@ -353,7 +355,8 @@
353
355
"items": {
354
356
"type": "string"
355
357
},
356
-
"markdownDescription": "Additional arguments to pass to swift commands that do package resolution, such as `swift package resolve`, `swift package update`, `swift build` and `swift test`. Keys and values should be provided as individual entries in the list."
358
+
"markdownDescription": "Additional arguments to pass to swift commands that do package resolution, such as `swift package resolve`, `swift package update`, `swift build` and `swift test`. Keys and values should be provided as individual entries in the list.",
359
+
"scope": "machine-overridable"
357
360
},
358
361
"swift.additionalTestArguments": {
359
362
"type": "array",
@@ -421,7 +424,8 @@
421
424
"When merging diagnostics, give precedence to diagnostics from `swiftc`.",
422
425
"When merging diagnostics, give precedence to diagnostics from `SourceKit`.",
423
426
"Keep diagnostics from all providers."
424
-
]
427
+
],
428
+
"scope": "machine-overridable"
425
429
},
426
430
"swift.diagnosticsStyle": {
427
431
"type": "string",
@@ -436,12 +440,14 @@
436
440
"Use whichever diagnostics style `swiftc` produces by default.",
437
441
"Use the `llvm` diagnostic style. This allows the parsing of \"notes\".",
438
442
"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."
439
-
]
443
+
],
444
+
"scope": "machine-overridable"
440
445
},
441
446
"swift.backgroundCompilation": {
442
447
"type": "boolean",
443
448
"default": false,
444
-
"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."
449
+
"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.",
450
+
"scope": "machine-overridable"
445
451
},
446
452
"swift.actionAfterBuildError": {
447
453
"type": "string",
@@ -455,17 +461,20 @@
455
461
"Focus on Problems View",
456
462
"Focus on Build Task Terminal"
457
463
],
458
-
"markdownDescription": "Action after a Build task generates errors."
464
+
"markdownDescription": "Action after a Build task generates errors.",
465
+
"scope": "application"
459
466
},
460
467
"swift.buildPath": {
461
468
"type": "string",
462
469
"default": "",
463
-
"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."
470
+
"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.",
"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`."
488
+
"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`.",
489
+
"scope": "application"
480
490
},
481
491
"swift.pluginArguments": {
482
492
"default": [],
@@ -559,7 +569,8 @@
559
569
"items": {
560
570
"type": "string"
561
571
},
562
-
"default": []
572
+
"default": [],
573
+
"scope": "machine-overridable"
563
574
}
564
575
}
565
576
},
@@ -575,7 +586,8 @@
575
586
"default": [
576
587
".git",
577
588
".github"
578
-
]
589
+
],
590
+
"scope": "machine-overridable"
579
591
},
580
592
"swift.showBuildStatus": {
581
593
"type": "string",
@@ -592,12 +604,14 @@
592
604
"Show the Swift build status in a status bar item provided by the Swift extension.",
593
605
"Show the Swift build status in the \"Progress Message\" status bar item provided by VS Code.",
594
606
"Show the Swift build status as a progress notification."
595
-
]
607
+
],
608
+
"scope": "application"
596
609
},
597
610
"swift.showCreateSwiftProjectInWelcomePage": {
598
611
"type": "boolean",
599
612
"default": true,
600
-
"markdownDescription": "Controls whether or not the create new swift project button appears in the welcome page."
613
+
"markdownDescription": "Controls whether or not the create new swift project button appears in the welcome page.",
614
+
"scope": "application"
601
615
},
602
616
"swift.openAfterCreateNewProject": {
603
617
"type": "string",
@@ -614,7 +628,8 @@
614
628
"Always prompt for action."
615
629
],
616
630
"default": "prompt",
617
-
"markdownDescription": "Controls whether to open a swift project automatically after creating it."
631
+
"markdownDescription": "Controls whether to open a swift project automatically after creating it.",
632
+
"scope": "application"
618
633
}
619
634
}
620
635
},
@@ -656,7 +671,8 @@
656
671
"cpp"
657
672
]
658
673
},
659
-
"order": 3
674
+
"order": 3,
675
+
"scope": "machine-overridable"
660
676
},
661
677
"swift.sourcekit-lsp.backgroundIndexing": {
662
678
"type": "string",
@@ -667,7 +683,8 @@
667
683
],
668
684
"default": "auto",
669
685
"markdownDescription": "Turns background indexing `on` or `off`. `auto` will enable background indexing if the Swift version is >= 6.1. This option has no effect in Swift versions prior to 6.0.",
670
-
"order": 4
686
+
"order": 4,
687
+
"scope": "machine-overridable"
671
688
},
672
689
"swift.sourcekit-lsp.trace.server": {
673
690
"type": "string",
@@ -678,13 +695,15 @@
678
695
"verbose"
679
696
],
680
697
"markdownDescription": "Controls logging the communication between VS Code and the SourceKit-LSP language server. Logs can be viewed in Output > SourceKit Language Server.",
681
-
"order": 5
698
+
"order": 5,
699
+
"scope": "machine-overridable"
682
700
},
683
701
"swift.sourcekit-lsp.disable": {
684
702
"type": "boolean",
685
703
"default": false,
686
704
"markdownDescription": "Disable SourceKit-LSP. This will turn off features like code completion, error diagnostics and jump-to-definition. Features like swift-testing test discovery will not work correctly.",
687
-
"order": 6
705
+
"order": 6,
706
+
"scope": "machine-overridable"
688
707
},
689
708
"sourcekit-lsp.inlayHints.enabled": {
690
709
"type": "boolean",
@@ -758,13 +777,15 @@
758
777
"Use the CodeLLDB extension's debug adapter."
759
778
],
760
779
"markdownDescription": "Select which debug adapter to use to debug Swift executables.",
761
-
"order": 1
780
+
"order": 1,
781
+
"scope": "machine-overridable"
762
782
},
763
783
"swift.debugger.path": {
764
784
"type": "string",
765
785
"default": "",
766
786
"markdownDescription": "Path to lldb debug adapter.",
767
-
"order": 2
787
+
"order": 2,
788
+
"scope": "machine-overridable"
768
789
},
769
790
"swift.debugger.setupCodeLLDB": {
770
791
"type": "string",
@@ -782,7 +803,8 @@
782
803
"Never automatically update CodeLLDB settings when they are incorrect."
783
804
],
784
805
"markdownDescription": "Choose how CodeLLDB settings are updated when debugging Swift executables.",
785
-
"order": 3
806
+
"order": 3,
807
+
"scope": "application"
786
808
},
787
809
"swift.debugger.useDebugAdapterFromToolchain": {
788
810
"type": "boolean",
@@ -805,36 +827,42 @@
805
827
},
806
828
"default": {},
807
829
"markdownDescription": "Additional environment variables to pass to swift operations (`swift build`, `swift resolve`, etc...).",
808
-
"order": 1
830
+
"order": 1,
831
+
"scope": "machine-overridable"
809
832
},
810
833
"swift.runtimePath": {
811
834
"type": "string",
812
835
"default": "",
813
836
"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. ",
814
-
"order": 2
837
+
"order": 2,
838
+
"scope": "machine-overridable"
815
839
},
816
840
"swift.SDK": {
817
841
"type": "string",
818
842
"default": "",
819
843
"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.\n\nFor SwiftPM projects, prefer using `swift.swiftSDK` with a triple (such as `arm64-apple-ios`) or Swift SDK name instead.",
820
-
"order": 3
844
+
"order": 3,
845
+
"scope": "machine-overridable"
821
846
},
822
847
"swift.swiftSDK": {
823
848
"type": "string",
824
849
"default": "",
825
-
"markdownDescription": "The [Swift SDK](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md) to compile against (`--swift-sdk` parameter)."
850
+
"markdownDescription": "The [Swift SDK](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md) to compile against (`--swift-sdk` parameter).",
851
+
"scope": "machine-overridable"
826
852
},
827
853
"swift.disableSandox": {
828
854
"type": "boolean",
829
855
"default": false,
830
856
"markdownDescription": "Disable sandboxing when running SwiftPM commands. In most cases you should keep the sandbox enabled and leave this setting set to `false`",
831
-
"order": 4
857
+
"order": 4,
858
+
"scope": "machine-overridable"
832
859
},
833
860
"swift.diagnostics": {
834
861
"type": "boolean",
835
862
"default": false,
836
863
"markdownDescription": "Output additional diagnostics to the Swift Output View.",
0 commit comments