-
Notifications
You must be signed in to change notification settings - Fork 280
/
config.schema.json
280 lines (280 loc) · 15.5 KB
/
config.schema.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
{
"$comment" : "DO NOT EDIT THIS FILE. This file is generated by ConfigSchemaGen\/ConfigSchemaGen.swift.",
"$schema" : "http:\/\/json-schema.org\/draft-07\/schema#",
"properties" : {
"backgroundIndexing" : {
"description" : "Whether background indexing is enabled.",
"markdownDescription" : "Whether background indexing is enabled.",
"type" : "boolean"
},
"backgroundPreparationMode" : {
"description" : "Determines how background indexing should prepare a target.",
"enum" : [
"build",
"noLazy",
"enabled"
],
"markdownDescription" : "Determines how background indexing should prepare a target.",
"markdownEnumDescriptions" : [
"Build a target to prepare it.",
"Prepare a target without generating object files but do not do lazy type checking and function body skipping. This uses SwiftPM's `--experimental-prepare-for-indexing-no-lazy` flag.",
"Prepare a target without generating object files."
],
"type" : "string"
},
"buildSettingsTimeout" : {
"description" : "Number of milliseconds to wait for build settings from the build system before using fallback build settings.",
"markdownDescription" : "Number of milliseconds to wait for build settings from the build system before using fallback build settings.",
"type" : "integer"
},
"cancelTextDocumentRequestsOnEditAndClose" : {
"description" : "Whether sending a `textDocument\/didChange` or `textDocument\/didClose` notification for a document should cancel all pending requests for that document.",
"markdownDescription" : "Whether sending a `textDocument\/didChange` or `textDocument\/didClose` notification for a document should cancel all pending requests for that document.",
"type" : "boolean"
},
"clangdOptions" : {
"description" : "Extra command line arguments passed to `clangd` when launching it.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra command line arguments passed to `clangd` when launching it.",
"type" : "array"
},
"compilationDatabase" : {
"description" : "Dictionary with the following keys, defining options for workspaces with a compilation database.",
"markdownDescription" : "Dictionary with the following keys, defining options for workspaces with a compilation database.",
"properties" : {
"searchPaths" : {
"description" : "Additional paths to search for a compilation database, relative to a workspace root.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Additional paths to search for a compilation database, relative to a workspace root.",
"type" : "array"
}
},
"type" : "object"
},
"defaultWorkspaceType" : {
"description" : "Default workspace type. Overrides workspace type selection logic.",
"enum" : [
"buildServer",
"compilationDatabase",
"swiftPM"
],
"markdownDescription" : "Default workspace type. Overrides workspace type selection logic.",
"type" : "string"
},
"experimentalFeatures" : {
"description" : "Experimental features that are enabled.",
"items" : {
"enum" : [
"on-type-formatting"
],
"type" : "string"
},
"markdownDescription" : "Experimental features that are enabled.",
"type" : "array"
},
"fallbackBuildSystem" : {
"description" : "Dictionary with the following keys, defining options for files that aren't managed by any build system.",
"markdownDescription" : "Dictionary with the following keys, defining options for files that aren't managed by any build system.",
"properties" : {
"cCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for C files.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for C files.",
"type" : "array"
},
"cxxCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for C++ files.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for C++ files.",
"type" : "array"
},
"sdk" : {
"description" : "The SDK to use for fallback arguments. Default is to infer the SDK using `xcrun`.",
"markdownDescription" : "The SDK to use for fallback arguments. Default is to infer the SDK using `xcrun`.",
"type" : "string"
},
"swiftCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for Swift files.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for Swift files.",
"type" : "array"
}
},
"type" : "object"
},
"generatedFilesPath" : {
"description" : "Directory in which generated interfaces and macro expansions should be stored.",
"markdownDescription" : "Directory in which generated interfaces and macro expansions should be stored.",
"type" : "string"
},
"index" : {
"description" : "Options related to indexing.",
"markdownDescription" : "Options related to indexing.",
"properties" : {
"indexDatabasePath" : {
"description" : "Directory in which the indexstore-db should be stored. By default, inferred from the build system.",
"markdownDescription" : "Directory in which the indexstore-db should be stored. By default, inferred from the build system.",
"type" : "string"
},
"indexPrefixMap" : {
"additionalProperties" : {
"type" : "string"
},
"description" : "Path remappings for remapping index data for local use.",
"markdownDescription" : "Path remappings for remapping index data for local use.",
"type" : "object"
},
"indexStorePath" : {
"description" : "Directory in which a separate compilation stores the index store. By default, inferred from the build system.",
"markdownDescription" : "Directory in which a separate compilation stores the index store. By default, inferred from the build system.",
"type" : "string"
},
"maxCoresPercentageToUseForBackgroundIndexing" : {
"description" : "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.",
"markdownDescription" : "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.",
"type" : "number"
},
"updateIndexStoreTimeout" : {
"description" : "Number of seconds to wait for an update index store task to finish before killing it.",
"markdownDescription" : "Number of seconds to wait for an update index store task to finish before killing it.",
"type" : "integer"
}
},
"type" : "object"
},
"logging" : {
"description" : "Options related to logging, changing SourceKit-LSP’s logging behavior on non-Apple platforms. On Apple platforms, logging is done through the [system log](Diagnose%20Bundle.md#Enable%20Extended%20Logging). These options can only be set globally and not per workspace.",
"markdownDescription" : "Options related to logging, changing SourceKit-LSP’s logging behavior on non-Apple platforms. On Apple platforms, logging is done through the [system log](Diagnose%20Bundle.md#Enable%20Extended%20Logging). These options can only be set globally and not per workspace.",
"properties" : {
"inputMirrorDirectory" : {
"description" : "Write all input received by SourceKit-LSP on stdin to a file in this directory. Useful to record and replay an entire SourceKit-LSP session.",
"markdownDescription" : "Write all input received by SourceKit-LSP on stdin to a file in this directory. Useful to record and replay an entire SourceKit-LSP session.",
"type" : "string"
},
"level" : {
"description" : "The level from which one onwards log messages should be written.",
"enum" : [
"debug",
"info",
"default",
"error",
"fault"
],
"markdownDescription" : "The level from which one onwards log messages should be written.",
"type" : "string"
},
"privacyLevel" : {
"description" : "Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.",
"enum" : [
"public",
"private",
"sensitive"
],
"markdownDescription" : "Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.",
"type" : "string"
}
},
"type" : "object"
},
"sourcekitdRequestTimeout" : {
"description" : "The maximum duration that a sourcekitd request should be allowed to execute before being declared as timed out. In general, editors should cancel requests that they are no longer interested in, but in case editors don't cancel requests, this ensures that a long-running non-cancelled request is not blocking sourcekitd and thus most semantic functionality. In particular, VS Code does not cancel the semantic tokens request, which can cause a long-running AST build that blocks sourcekitd.",
"markdownDescription" : "The maximum duration that a sourcekitd request should be allowed to execute before being declared as timed out. In general, editors should cancel requests that they are no longer interested in, but in case editors don't cancel requests, this ensures that a long-running non-cancelled request is not blocking sourcekitd and thus most semantic functionality. In particular, VS Code does not cancel the semantic tokens request, which can cause a long-running AST build that blocks sourcekitd.",
"type" : "number"
},
"swiftPM" : {
"description" : "Options for SwiftPM workspaces.",
"markdownDescription" : "Options for SwiftPM workspaces.",
"properties" : {
"cCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for C files. Equivalent to SwiftPM's `-Xcc` option.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for C files. Equivalent to SwiftPM's `-Xcc` option.",
"type" : "array"
},
"configuration" : {
"description" : "The configuration to build the project for during background indexing and the configuration whose build folder should be used for Swift modules if background indexing is disabled. Equivalent to SwiftPM's `--configuration` option.",
"enum" : [
"debug",
"release"
],
"markdownDescription" : "The configuration to build the project for during background indexing and the configuration whose build folder should be used for Swift modules if background indexing is disabled. Equivalent to SwiftPM's `--configuration` option.",
"type" : "string"
},
"cxxCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for C++ files. Equivalent to SwiftPM's `-Xcxx` option.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for C++ files. Equivalent to SwiftPM's `-Xcxx` option.",
"type" : "array"
},
"disableSandbox" : {
"description" : "Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option. Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.",
"markdownDescription" : "Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option. Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.",
"type" : "boolean"
},
"linkerFlags" : {
"description" : "Extra arguments passed to the linker. Equivalent to SwiftPM's `-Xlinker` option.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the linker. Equivalent to SwiftPM's `-Xlinker` option.",
"type" : "array"
},
"scratchPath" : {
"description" : "Build artifacts directory path. If nil, the build system may choose a default value. This path can be specified as a relative path, which will be interpreted relative to the project root. Equivalent to SwiftPM's `--scratch-path` option.",
"markdownDescription" : "Build artifacts directory path. If nil, the build system may choose a default value. This path can be specified as a relative path, which will be interpreted relative to the project root. Equivalent to SwiftPM's `--scratch-path` option.",
"type" : "string"
},
"swiftCompilerFlags" : {
"description" : "Extra arguments passed to the compiler for Swift files. Equivalent to SwiftPM's `-Xswiftc` option.",
"items" : {
"type" : "string"
},
"markdownDescription" : "Extra arguments passed to the compiler for Swift files. Equivalent to SwiftPM's `-Xswiftc` option.",
"type" : "array"
},
"swiftSDK" : {
"description" : "Equivalent to SwiftPM's `--swift-sdk` option.",
"markdownDescription" : "Equivalent to SwiftPM's `--swift-sdk` option.",
"type" : "string"
},
"swiftSDKsDirectory" : {
"description" : "Equivalent to SwiftPM's `--swift-sdks-path` option.",
"markdownDescription" : "Equivalent to SwiftPM's `--swift-sdks-path` option.",
"type" : "string"
},
"triple" : {
"description" : "Equivalent to SwiftPM's `--triple` option.",
"markdownDescription" : "Equivalent to SwiftPM's `--triple` option.",
"type" : "string"
}
},
"type" : "object"
},
"swiftPublishDiagnosticsDebounceDuration" : {
"description" : "The time that `SwiftLanguageService` should wait after an edit before starting to compute diagnostics and sending a `PublishDiagnosticsNotification`.",
"markdownDescription" : "The time that `SwiftLanguageService` should wait after an edit before starting to compute diagnostics and sending a `PublishDiagnosticsNotification`.",
"type" : "number"
},
"workDoneProgressDebounceDuration" : {
"description" : "When a task is started that should be displayed to the client as a work done progress, how many milliseconds to wait before actually starting the work done progress. This prevents flickering of the work done progress in the client for short-lived index tasks which end within this duration.",
"markdownDescription" : "When a task is started that should be displayed to the client as a work done progress, how many milliseconds to wait before actually starting the work done progress. This prevents flickering of the work done progress in the client for short-lived index tasks which end within this duration.",
"type" : "number"
}
},
"title" : "SourceKit-LSP Configuration",
"type" : "object"
}