Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 27, 2025

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.

I’ll open a follow-up PR to fix this kind of issue for other settings, defaulting to nil instead of empty arrays but I think those don’t have real-world impact because the default value in the command-line arguments and in SourceKitLSPOptions line up.

…kit-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.
@ahoppen
Copy link
Member Author

ahoppen commented Oct 27, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 28, 2025

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 28, 2025

@swift-ci Please test Windows

@ahoppen ahoppen enabled auto-merge October 28, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants