Skip to content

Commit d19f829

Browse files
committed
Fix issue that caused background indexing to be disabled when sourcekit-lsp is launched without options
When launching sourcekit-lsp without any command-line arguments, we would set `backgroundIndexing = false` in the options. Unless the user overwrites this somehow, this means that background indexing is disabled. This is not an issue in VS Code, because it explicitly enables background indexing in the initialization request but for all other editors this means that background indexing was likely disabled by default. Simply remove that line since `backgroundIndexing` defaults to `true` by now anyway.
1 parent 79964c8 commit d19f829

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/sourcekit-lsp/SourceKitLSP.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ struct SourceKitLSP: AsyncParsableCommand {
170170
),
171171
defaultWorkspaceType: defaultWorkspaceType,
172172
generatedFilesPath: generatedFilesPath,
173-
backgroundIndexing: experimentalFeatures.contains("background-indexing"),
174173
experimentalFeatures: Set(experimentalFeatures.compactMap(ExperimentalFeature.init))
175174
)
176175
}

0 commit comments

Comments
 (0)