File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,11 @@ struct SourceKitLSP: AsyncParsableCommand {
200
200
)
201
201
var completionMaxResults = 200
202
202
203
+ @Flag (
204
+ help: " Enable background indexing. This feature is still under active development and may be incomplete. "
205
+ )
206
+ var enableExperimentalBackgroundIndexing = false
207
+
203
208
func mapOptions( ) -> SourceKitLSPServer . Options {
204
209
var serverOptions = SourceKitLSPServer . Options ( )
205
210
@@ -215,6 +220,7 @@ struct SourceKitLSP: AsyncParsableCommand {
215
220
serverOptions. indexOptions. indexStorePath = indexStorePath
216
221
serverOptions. indexOptions. indexDatabasePath = indexDatabasePath
217
222
serverOptions. indexOptions. indexPrefixMappings = indexPrefixMappings
223
+ serverOptions. indexOptions. enableBackgroundIndexing = enableExperimentalBackgroundIndexing
218
224
serverOptions. completionOptions. maxResults = completionMaxResults
219
225
serverOptions. generatedInterfacesPath = generatedInterfacesPath
220
226
You can’t perform that action at this time.
0 commit comments