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
Copy file name to clipboardExpand all lines: Documentation/Configuration File.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,37 +14,37 @@ The structure of the file is currently not guaranteed to be stable. Options may
14
14
## Structure
15
15
16
16
`config.json` is a JSON file with the following structure. All keys are optional and unknown keys are ignored.
17
-
-`swiftPM`: Options for SwiftPM workspaces
17
+
-`swiftPM`: Options for SwiftPM workspaces.
18
18
-`configuration: "debug"|"release"`: The configuration to build the project for during background indexing
19
19
and the configuration whose build folder should be used for Swift
20
20
modules if background indexing is disabled.
21
21
Equivalent to SwiftPM's `--configuration` option.
22
22
-`scratchPath: string`: Build artifacts directory path. If nil, the build system may choose a default value.
23
23
This path can be specified as a relative path, which will be interpreted relative to the project root.
24
24
Equivalent to SwiftPM's `--scratch-path` option.
25
-
-`swiftSDKsDirectory: string`: Equivalent to SwiftPM's `--swift-sdks-path` option
26
-
-`swiftSDK: string`: Equivalent to SwiftPM's `--swift-sdk` option
27
-
-`triple: string`: Equivalent to SwiftPM's `--triple` option
25
+
-`swiftSDKsDirectory: string`: Equivalent to SwiftPM's `--swift-sdks-path` option.
26
+
-`swiftSDK: string`: Equivalent to SwiftPM's `--swift-sdk` option.
27
+
-`triple: string`: Equivalent to SwiftPM's `--triple` option.
28
28
-`cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files. Equivalent to SwiftPM's `-Xcc` option.
29
29
-`cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files. Equivalent to SwiftPM's `-Xcxx` option.
30
30
-`swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files. Equivalent to SwiftPM's `-Xswiftc` option.
31
31
-`linkerFlags: string[]`: Extra arguments passed to the linker. Equivalent to SwiftPM's `-Xlinker` option.
32
-
-`disableSandbox: boolean`: Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option
32
+
-`disableSandbox: boolean`: Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option.
33
33
Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.
34
-
-`compilationDatabase`: Dictionary with the following keys, defining options for workspaces with a compilation database
34
+
-`compilationDatabase`: Dictionary with the following keys, defining options for workspaces with a compilation database.
35
35
-`searchPaths: string[]`: Additional paths to search for a compilation database, relative to a workspace root.
36
-
-`fallbackBuildSystem`: Dictionary with the following keys, defining options for files that aren't managed by any build system
37
-
-`cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files
38
-
-`cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files
39
-
-`swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files
36
+
-`fallbackBuildSystem`: Dictionary with the following keys, defining options for files that aren't managed by any build system.
37
+
-`cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files.
38
+
-`cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files.
39
+
-`swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files.
40
40
-`sdk: string`: The SDK to use for fallback arguments. Default is to infer the SDK using `xcrun`.
41
41
-`buildSettingsTimeout: integer`: Number of milliseconds to wait for build settings from the build system before using fallback build settings.
42
-
-`clangdOptions: string[]`: Extra command line arguments passed to `clangd` when launching it
43
-
-`index`: Options related to indexing
42
+
-`clangdOptions: string[]`: Extra command line arguments passed to `clangd` when launching it.
43
+
-`index`: Options related to indexing.
44
44
-`indexStorePath: string`: Directory in which a separate compilation stores the index store. By default, inferred from the build system.
45
45
-`indexDatabasePath: string`: Directory in which the indexstore-db should be stored. By default, inferred from the build system.
46
46
-`indexPrefixMap: [string: string]`: Path remappings for remapping index data for local use.
47
-
-`maxCoresPercentageToUseForBackgroundIndexing: number`: A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting
47
+
-`maxCoresPercentageToUseForBackgroundIndexing: number`: A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting.
48
48
-`updateIndexStoreTimeout: integer`: Number of seconds to wait for an update index store task to finish before killing it.
49
49
-`logging`: Options related to logging, changing SourceKit-LSP’s logging behavior on non-Apple platforms.
50
50
On Apple platforms, logging is done through the [system log](Diagnose%20Bundle.md#Enable%20Extended%20Logging).
@@ -58,9 +58,9 @@ The structure of the file is currently not guaranteed to be stable. Options may
58
58
-`generatedFilesPath: string`: Directory in which generated interfaces and macro expansions should be stored.
59
59
-`backgroundIndexing: boolean`: Whether background indexing is enabled.
60
60
-`backgroundPreparationMode: string`: Determines how background indexing should prepare a target. Possible values are:
61
-
-`build`: Build a target to prepare it
62
-
-`noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping
63
-
-`enabled`: Prepare a target without generating object files and the like
61
+
-`build`: Build a target to prepare it.
62
+
-`noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping.
63
+
-`enabled`: Prepare a target without generating object files and the like.
64
64
-`cancelTextDocumentRequestsOnEditAndClose: boolean`: Whether sending a `textDocument/didChange` or `textDocument/didClose` notification for a document should cancel
65
65
all pending requests for that document.
66
66
-`experimentalFeatures: ("on-type-formatting")[]`: Experimental features that are enabled.
/// Path remappings for remapping index data for local use.
169
169
publicvarindexPrefixMap:[String:String]?
170
-
/// A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting
170
+
/// A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting.
0 commit comments