Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 30, 2025

  • Explanation: 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.
  • Scope: SourceKit-LSP in editors other than VS Code
  • Issue: n/a
  • Original PR: Fix issue that caused background indexing to be disabled when sourcekit-lsp is launched without options #2337
  • Risk: Low, enables the background indexing behavior that people have been using in VS Code by default in all other editors as well.
  • Testing: n/a
  • Reviewer: @bnbarham

…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 ahoppen requested a review from a team as a code owner October 30, 2025 07:05
@ahoppen
Copy link
Member Author

ahoppen commented Oct 30, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 30, 2025

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 31, 2025

@swift-ci Please test Windows

1 similar comment
@bnbarham
Copy link
Contributor

@swift-ci Please test Windows

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.

2 participants