Skip to content

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Dec 1, 2021

Add <callarg.default /> nodes to the annotated description of a
completion result for all arguments that have defaults.

Also add a new option to control whether or not an extra item is added
for calls with no default arguments or not (since clients can now use
the marked up argument to check this themselves).

@bnbarham bnbarham requested a review from rintaro December 1, 2021 06:36
@bnbarham
Copy link
Contributor Author

bnbarham commented Dec 1, 2021

@swift-ci please test

@bnbarham bnbarham force-pushed the annotate-default-args branch 2 times, most recently from 6bbf33e to fae72ab Compare December 2, 2021 07:24
@bnbarham bnbarham changed the title [CodeCompletion] Markup default arguments [CodeComplete] Markup default arguments Dec 2, 2021
@bnbarham
Copy link
Contributor Author

bnbarham commented Dec 2, 2021

@swift-ci please test

@bnbarham
Copy link
Contributor Author

bnbarham commented Dec 3, 2021

Windows failure is known (and that test since disabled).

@bnbarham bnbarham force-pushed the annotate-default-args branch from fae72ab to 5f701c2 Compare December 14, 2021 01:04
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5f701c2252bdbad0bc9e11670f5ac2038a276e8b

@bnbarham
Copy link
Contributor Author

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5f701c2252bdbad0bc9e11670f5ac2038a276e8b

@bnbarham
Copy link
Contributor Author

@swift-ci please clean test macOS platform

@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham force-pushed the annotate-default-args branch from 5f701c2 to 2ca304e Compare December 14, 2021 23:26
@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5f701c2252bdbad0bc9e11670f5ac2038a276e8b

@bnbarham
Copy link
Contributor Author

@swift-ci please clean test macOS platform

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5f701c2252bdbad0bc9e11670f5ac2038a276e8b

Add `<callarg.default />` nodes to the annotated description of a
completion result for all arguments that have defaults.

Resolves rdar://85904660.
Now that arguments are marked up with whether they have a default or
not, clients may not need the extra call (that has no default
arguments). Add an option to allow not adding this item.

Resolves rdar://85526214.
@bnbarham bnbarham force-pushed the annotate-default-args branch from 2ca304e to 65ef802 Compare December 15, 2021 05:43
@bnbarham
Copy link
Contributor Author

@swift-ci please smoke test

@bnbarham bnbarham merged commit e48fe8c into swiftlang:main Dec 16, 2021
@bnbarham bnbarham deleted the annotate-default-args branch December 16, 2021 00:19
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