Skip to content

Conversation

award999
Copy link
Contributor

@award999 award999 commented Sep 25, 2025

Description

This is not related to background indexing, but instead the optional background compilation feature that runs a build task on save. Allow swift.backgroundCompilation setting to accept an object which will accept enabled, release, and useDefaultTask properties. The task marked as the default "build" group task will be used instead of the Build All task. This way the whole world is not built for large projects.

Issue: #1320

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

@award999 award999 force-pushed the background-compilation-task branch from 3cb522d to d6db459 Compare September 30, 2025 14:20
@award999 award999 changed the title Allow using the default swift build task for background compilation Allow optional swift.backgroundCompilation object notation for finer control of background compilation Oct 1, 2025
@award999 award999 added the full-test-run Perform a full test suite run. Apply this label before pushing up a PR or commit label Oct 1, 2025
This is not related to background indexing, but instead the optional
background compilation feature that runs a build task on save. Essentially
when `swift.backgroundCompilation.useDefaultTask` is enabled, any `swift`
task marked as the default "build" group task will be used instead of
the Build All task. This way the whole world is not built for large projects.

Issue: swiftlang#1320
- Setting `swift.backgroundCompilation` to `true` was causing the value
  of `swift.backgroundCompilation.useDefaultTask` to be ignored
Object will accept `enabled`, `release`, and `useDefaultTask` properties
@award999 award999 force-pushed the background-compilation-task branch from 791a305 to 55a4d90 Compare October 1, 2025 16:34
@award999 award999 merged commit 0217b9f into swiftlang:main Oct 2, 2025
49 of 52 checks passed
@award999 award999 deleted the background-compilation-task branch October 2, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-test-run Perform a full test suite run. Apply this label before pushing up a PR or commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants