@@ -108,7 +108,7 @@ public final class Workspace: Sendable {
108108 mainFilesProvider: uncheckedIndex,
109109 toolchainRegistry: toolchainRegistry
110110 )
111- if options. indexOptions . enableBackgroundIndexing ,
111+ if options. experimentalFeatures . contains ( . backgroundIndexing ) ,
112112 let uncheckedIndex,
113113 await buildSystemManager. supportsPreparation
114114 {
@@ -247,37 +247,22 @@ public struct IndexOptions: Sendable {
247247 /// explicit calls to pollForUnitChangesAndWait().
248248 public var listenToUnitEvents : Bool
249249
250- /// Whether background indexing should be enabled.
251- public var enableBackgroundIndexing : Bool
252-
253250 /// The percentage of the machine's cores that should at most be used for background indexing.
254251 ///
255252 /// Setting this to a value < 1 ensures that background indexing doesn't use all CPU resources.
256253 public var maxCoresPercentageToUseForBackgroundIndexing : Double
257254
258- /// Whether to show the files that are currently being indexed / the targets that are currently being prepared in the
259- /// work done progress.
260- ///
261- /// This is an option because VS Code tries to render a multi-line work done progress into a single line text field in
262- /// the status bar, which looks broken. But at the same time, it is very useful to get a feeling about what's
263- /// currently happening indexing-wise.
264- public var showActivePreparationTasksInProgress : Bool
265-
266255 public init (
267256 indexStorePath: AbsolutePath ? = nil ,
268257 indexDatabasePath: AbsolutePath ? = nil ,
269258 indexPrefixMappings: [ PathPrefixMapping ] ? = nil ,
270259 listenToUnitEvents: Bool = true ,
271- enableBackgroundIndexing: Bool = false ,
272- maxCoresPercentageToUseForBackgroundIndexing: Double = 1 ,
273- showActivePreparationTasksInProgress: Bool = false
260+ maxCoresPercentageToUseForBackgroundIndexing: Double = 1
274261 ) {
275262 self . indexStorePath = indexStorePath
276263 self . indexDatabasePath = indexDatabasePath
277264 self . indexPrefixMappings = indexPrefixMappings
278265 self . listenToUnitEvents = listenToUnitEvents
279- self . enableBackgroundIndexing = enableBackgroundIndexing
280266 self . maxCoresPercentageToUseForBackgroundIndexing = maxCoresPercentageToUseForBackgroundIndexing
281- self . showActivePreparationTasksInProgress = showActivePreparationTasksInProgress
282267 }
283268}
0 commit comments