Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "auto" mode to sourcekit-lsp backgroundIndexing setting #1232

Merged

Conversation

plemarquand
Copy link
Contributor

Now that backgroundIndexing is no longer experimental it can be enabled by default in Swift 6.1.

This patch evolves the sourcekit-lsp.backgroundIndexing setting to be an enum with three possible values, true, false or auto.

The true and false options function as they did previously. The new auto setting will enable background indexing on Swift >= 6.1. To enable background indexing on Swift 6.0 the user must still set this setting to true, as this feature is experimental in 6.0.

Now that backgroundIndexing is no longer experimental it can be enabled
by default in Swift 6.1.

This patch evolves the `sourcekit-lsp.backgroundIndexing` setting to be
an enum with three possible values, `true`, `false` or `auto`.

The `true` and `false` options function as they did previously. The new
`auto` setting will enable background indexing on Swift >= 6.1. To
enable background indexing on Swift 6.0 the user must still set this
setting to `true`, as this feature is experimental in 6.0.
@plemarquand plemarquand force-pushed the background-indexing-auto-6.1 branch from 9cf80b3 to 0882f49 Compare November 28, 2024 18:36
@plemarquand
Copy link
Contributor Author

cc @ahoppen

Copy link
Contributor

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@plemarquand plemarquand merged commit f99bc17 into swiftlang:main Dec 2, 2024
15 checks passed
@plemarquand plemarquand deleted the background-indexing-auto-6.1 branch December 2, 2024 13:27
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