-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.3][CodeCompletion] Give up fast-completion if dependent files are modified #31547
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
[5.3][CodeCompletion] Give up fast-completion if dependent files are modified #31547
Conversation
Check if dependencies are modified since the last checking. Dependencies: - Other source files in the current module - Dependent files collected by the dependency tracker When: - If the last dependency check was over N (defaults to 5) seconds ago Invalidate if: - The dependency file is missing - The modification time of the dependecy is greater than the last check - If the modification time is zero, compare the content using the file system from the previous completion and the current completion rdar://problem/62336432 (cherry picked from commit 05a87e8)
(cherry picked from commit df8fa09)
These test cases use shell variables etc. (cherry picked from commit e32de78)
@swift-ci Please test |
- Detect same file with bufferID instead of the file name - Compare virtual in-memory filesystem content with hash value (cherry picked from commit af5daed)
15a80f1
to
b00ef1b
Compare
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please nominate |
1 similar comment
@swift-ci Please nominate |
Uh oh!
There was an error while loading. Please reload this page.