From 0661c508bf748f2f5f6d2fb31503016c770850fb Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Mon, 27 Oct 2025 20:26:37 +0100 Subject: [PATCH] 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. --- Sources/sourcekit-lsp/SourceKitLSP.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/sourcekit-lsp/SourceKitLSP.swift b/Sources/sourcekit-lsp/SourceKitLSP.swift index 893bb2bd9..0a617f910 100644 --- a/Sources/sourcekit-lsp/SourceKitLSP.swift +++ b/Sources/sourcekit-lsp/SourceKitLSP.swift @@ -169,7 +169,6 @@ struct SourceKitLSP: AsyncParsableCommand { ), defaultWorkspaceType: defaultWorkspaceType, generatedFilesPath: generatedFilesPath, - backgroundIndexing: experimentalFeatures.contains("background-indexing"), experimentalFeatures: Set(experimentalFeatures.compactMap(ExperimentalFeature.init)) ) }