@@ -278,6 +278,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
278278 /// Whether the server implements the `textDocument/sourceKitOptions` request.
279279 public var sourceKitOptionsProvider : Bool ?
280280
281+ /// The number of targets to prepare concurrently, when an index request is scheduled.
282+ public var indexTaskBatchSize : Int ?
283+
281284 /// The files to watch for changes.
282285 public var watchers : [ FileSystemWatcher ] ?
283286
@@ -286,12 +289,14 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
286289 public init (
287290 indexDatabasePath: String ? = nil ,
288291 indexStorePath: String ? = nil ,
292+ indexTaskBatchSize: Int ? = nil ,
289293 watchers: [ FileSystemWatcher ] ? = nil ,
290294 prepareProvider: Bool ? = nil ,
291295 sourceKitOptionsProvider: Bool ? = nil
292296 ) {
293297 self . indexDatabasePath = indexDatabasePath
294298 self . indexStorePath = indexStorePath
299+ self . indexTaskBatchSize = indexTaskBatchSize
295300 self . watchers = watchers
296301 self . prepareProvider = prepareProvider
297302 self . sourceKitOptionsProvider = sourceKitOptionsProvider
@@ -300,13 +305,15 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
300305 public init (
301306 indexDatabasePath: String ? = nil ,
302307 indexStorePath: String ? = nil ,
308+ indexTaskBatchSize: Int ? = nil ,
303309 outputPathsProvider: Bool ? = nil ,
304310 prepareProvider: Bool ? = nil ,
305311 sourceKitOptionsProvider: Bool ? = nil ,
306312 watchers: [ FileSystemWatcher ] ? = nil
307313 ) {
308314 self . indexDatabasePath = indexDatabasePath
309315 self . indexStorePath = indexStorePath
316+ self . indexTaskBatchSize = indexTaskBatchSize
310317 self . outputPathsProvider = outputPathsProvider
311318 self . prepareProvider = prepareProvider
312319 self . sourceKitOptionsProvider = sourceKitOptionsProvider
@@ -320,6 +327,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
320327 if case . string( let indexStorePath) = dictionary [ CodingKeys . indexStorePath. stringValue] {
321328 self . indexStorePath = indexStorePath
322329 }
330+ if case . int( let indexTaskBatchSize) = dictionary [ CodingKeys . indexTaskBatchSize. stringValue] {
331+ self . indexTaskBatchSize = indexTaskBatchSize
332+ }
323333 if case . bool( let outputPathsProvider) = dictionary [ CodingKeys . outputPathsProvider. stringValue] {
324334 self . outputPathsProvider = outputPathsProvider
325335 }
@@ -342,6 +352,9 @@ public struct SourceKitInitializeBuildResponseData: LSPAnyCodable, Codable, Send
342352 if let indexStorePath {
343353 result [ CodingKeys . indexStorePath. stringValue] = . string( indexStorePath)
344354 }
355+ if let indexTaskBatchSize {
356+ result [ CodingKeys . indexTaskBatchSize. stringValue] = . int( indexTaskBatchSize)
357+ }
345358 if let outputPathsProvider {
346359 result [ CodingKeys . outputPathsProvider. stringValue] = . bool( outputPathsProvider)
347360 }
0 commit comments