Skip to content

[CodeCompletion] Use getBodySourceRange() instead of getSourceRange() #28944

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

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Dec 24, 2019

To check if the completion is happening in the AFD body.
Otherwise, local variables are sometimes not suggested because the range checking is confused by the fast completion (i.e. the body and its range may be from another file).

rdar://problem/58175106

@rintaro
Copy link
Member Author

rintaro commented Dec 24, 2019

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Dec 24, 2019

@swift-ci Please smoke test macOS

To check if the completion is happening in the AFD body.
Otherwise, local variables are sometimes not suggested because the body
and its range is from another file.

rdar://problem/58175106
@rintaro rintaro force-pushed the ide-completion-rdar58175106 branch from e237fa3 to 046c914 Compare January 2, 2020 20:19
@rintaro
Copy link
Member Author

rintaro commented Jan 2, 2020

@swift-ci Please smoke test

@rintaro rintaro requested a review from nathawes January 10, 2020 23:50
@rintaro rintaro merged commit 8fe4c07 into swiftlang:master Jan 11, 2020
@rintaro rintaro deleted the ide-completion-rdar58175106 branch January 13, 2020 19:23
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