@@ -278,6 +278,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
278
278
/// Whether the server implements the `textDocument/sourceKitOptions` request.
279
279
public var sourceKitOptionsProvider : Bool ?
280
280
281
+ /// The number of targets to prepare concurrently, when an index request is scheduled.
282
+ public var indexTaskBatchSize : Int ?
283
+
281
284
/// The files to watch for changes.
282
285
public var watchers : [ FileSystemWatcher ] ?
283
286
@@ -286,12 +289,14 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
286
289
public init (
287
290
indexDatabasePath: String ? = nil ,
288
291
indexStorePath: String ? = nil ,
292
+ indexTaskBatchSize: Int ? = nil ,
289
293
watchers: [ FileSystemWatcher ] ? = nil ,
290
294
prepareProvider: Bool ? = nil ,
291
295
sourceKitOptionsProvider: Bool ? = nil
292
296
) {
293
297
self . indexDatabasePath = indexDatabasePath
294
298
self . indexStorePath = indexStorePath
299
+ self . indexTaskBatchSize = indexTaskBatchSize
295
300
self . watchers = watchers
296
301
self . prepareProvider = prepareProvider
297
302
self . sourceKitOptionsProvider = sourceKitOptionsProvider
@@ -300,13 +305,15 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
300
305
public init (
301
306
indexDatabasePath: String ? = nil ,
302
307
indexStorePath: String ? = nil ,
308
+ indexTaskBatchSize: Int ? = nil ,
303
309
outputPathsProvider: Bool ? = nil ,
304
310
prepareProvider: Bool ? = nil ,
305
311
sourceKitOptionsProvider: Bool ? = nil ,
306
312
watchers: [ FileSystemWatcher ] ? = nil
307
313
) {
308
314
self . indexDatabasePath = indexDatabasePath
309
315
self . indexStorePath = indexStorePath
316
+ self . indexTaskBatchSize = indexTaskBatchSize
310
317
self . outputPathsProvider = outputPathsProvider
311
318
self . prepareProvider = prepareProvider
312
319
self . sourceKitOptionsProvider = sourceKitOptionsProvider
@@ -320,6 +327,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
320
327
if case . string( let indexStorePath) = dictionary [ CodingKeys . indexStorePath. stringValue] {
321
328
self . indexStorePath = indexStorePath
322
329
}
330
+ if case . int( let indexTaskBatchSize) = dictionary [ CodingKeys . indexTaskBatchSize. stringValue] {
331
+ self . indexTaskBatchSize = indexTaskBatchSize
332
+ }
323
333
if case . bool( let outputPathsProvider) = dictionary [ CodingKeys . outputPathsProvider. stringValue] {
324
334
self . outputPathsProvider = outputPathsProvider
325
335
}
@@ -342,6 +352,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
342
352
if let indexStorePath {
343
353
result [ CodingKeys . indexStorePath. stringValue] = . string( indexStorePath)
344
354
}
355
+ if let indexTaskBatchSize {
356
+ result [ CodingKeys . indexTaskBatchSize. stringValue] = . int( indexTaskBatchSize)
357
+ }
345
358
if let outputPathsProvider {
346
359
result [ CodingKeys . outputPathsProvider. stringValue] = . bool( outputPathsProvider)
347
360
}
0 commit comments