Adds an --incremental (-i) option to the xcsync watch command.#241
Open
Prochy wants to merge 3 commits intodotnet:mainfrom
Open
Adds an --incremental (-i) option to the xcsync watch command.#241Prochy wants to merge 3 commits intodotnet:mainfrom
Prochy wants to merge 3 commits intodotnet:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an --incremental (-i) option to the xcsync watch command.
When enabled, watch mode syncs only the files related to the changed source/Xcode file instead of re-running a full project sync on every change.
Why
Today, xcsync watch performs a full synchronization whenever a file changes. That is more work than necessary for small edits and makes watch mode slower and noisier during normal development.
This change introduces an incremental mode so watch can react more efficiently to single-file changes while preserving the existing full-sync behavior by default.
The xsync was unusable in my environment because if I change something in XCode, it takes around 1 minute to propagate the change to C# codebase. I have there around 30 items in XCode. With incremental option, it's within a few seconds.
What changed
Added --incremental / -i to xcsync watch
Threaded the option through watch execution into change handling
Updated change messages to carry whether the sync should be incremental
Passed the changed file path into sync so only affected types/files are processed
Kept default behavior unchanged when the option is not specified
Result
With xcsync watch --incremental, edits in watch mode trigger a targeted sync for the changed file instead of syncing the entire project.
Microsoft Reviewers: Open in CodeFlow